Skip to content
Browse files

MDL-16427 changing $answer=='*' to $answer ==='*'

  • Loading branch information...
1 parent fe4550b commit 253df4f69b222a644ab6a0863cea63cb45c5c03a pichetp committed Sep 18, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/numerical/questiontype.php
View
4 question/type/numerical/questiontype.php
@@ -115,7 +115,7 @@ function save_question_options($question) {
$answer = new stdClass;
$answer->question = $question->id;
- if (trim($dataanswer) == '*') {
+ if (trim($dataanswer) === '*') {
$answer->answer = '*';
} else {
$answer->answer = $this->apply_unit($dataanswer, $units);
@@ -242,7 +242,7 @@ function compare_responses(&$question, $state, $teststate) {
*/
function test_response(&$question, &$state, $answer) {
// Deal with the match anything answer.
- if ($answer->answer == '*') {
+ if ($answer->answer === '*') {
return true;
}

0 comments on commit 253df4f

Please sign in to comment.
Something went wrong with that request. Please try again.