Skip to content

Commit

Permalink
MDL-45660 question statistics: make comparison more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed May 22, 2014
1 parent a929fd5 commit 8b431dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function has_actual_responses() {
return true;
} else if (count($actualresponses) === 1) {
$singleactualresponse = reset($actualresponses);
return (string)$singleactualresponse != $this->modelresponse;
return (string)$singleactualresponse !== (string)$this->modelresponse;
}
return false;
}
Expand Down

0 comments on commit 8b431dc

Please sign in to comment.