Permalink
Browse files

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

…wn in multianswer
  • Loading branch information...
1 parent a81beb4 commit d2eca8939100c1f13ae6e620ae2fec39a93fe921 @ppichet ppichet committed Jan 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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>';

0 comments on commit d2eca89

Please sign in to comment.