Skip to content

Commit

Permalink
MDL-27418 fix minor regression found by Rajesh.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jul 1, 2011
1 parent 3a6eb8e commit e42646b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/numerical/edit_numerical_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ protected function validate_answers($data, $errors) {
* @return bool whether this is a valid answer.
*/
protected function is_valid_answer($answer, $data) {
return $answer == '*' || $this->is_valid_number($x);
return $answer == '*' || $this->is_valid_number($answer);
}

/**
Expand Down

0 comments on commit e42646b

Please sign in to comment.