Merge branch 'MDL-45660_26' of git://github.com/timhunt/moodle into MOODLE_26_STABLE

This commit is contained in:
Sam Hemelryk
2014-05-26 11:52:35 +12:00
2 changed files with 2 additions and 2 deletions
@@ -84,7 +84,7 @@ class analysis_for_actual_response {
}
public function response_matches($response) {
return $response == $this->response;
return (string)$response === (string)$this->response;
}
/**
@@ -107,7 +107,7 @@ class analysis_for_class {
return true;
} else if (count($this->actualresponses) == 1) {
$onlyactualresponse = reset($this->actualresponses);
return (string)$onlyactualresponse != $this->modelresponse;
return !$onlyactualresponse->response_matches($this->modelresponse);
}
return false;
}