Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-21336 testing with $correct != '' so that correct answer 0 is sho…

…wn in multianswer
  • Loading branch information...
commit d2eca8939100c1f13ae6e620ae2fec39a93fe921 1 parent a81beb4
@ppichet ppichet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  question/type/multianswer/questiontype.php
View
2  question/type/multianswer/questiontype.php
@@ -313,7 +313,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
}
}
}
- if ($correctanswer) {
+ if ($correctanswer != '') {
$feedback = '<div class="correctness">';
$feedback .= get_string('correctansweris', 'quiz', s($correctanswer, true));
$feedback .= '</div>';
Please sign in to comment.
Something went wrong with that request. Please try again.