Skip to content
Browse files

MDL-20960 testing correctly response 0 as not null line 348

  • Loading branch information...
1 parent c22b20d commit 3e52ba108f52b12df66063494905d2d3768183ad @ppichet ppichet committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/multianswer/questiontype.php
View
2 question/type/multianswer/questiontype.php
@@ -345,7 +345,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
// Set up a default chosenanswer so that all non-empty wrong
// answers are highlighted red
- if (empty($chosenanswer) && !empty($response)) {
+ if (empty($chosenanswer) && $response != '') {
$chosenanswer = new stdClass;
$chosenanswer->fraction = 0.0;
}

0 comments on commit 3e52ba1

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