MDL-21336 testing with $correct != '' so that correct answer 0 is shown in multianswer

This commit is contained in:
Pierre Pichet
2010-01-14 21:59:07 +00:00
parent 3bf11ca479
commit ba95414539
+1 -1
View File
@@ -357,7 +357,7 @@ class embedded_cloze_qtype extends default_questiontype {
}
}
}
if ($correctanswer) {
if ($correctanswer != '' ) {
$feedback = '<div class="correctness">';
$feedback .= get_string('correctansweris', 'quiz', s($correctanswer));
$feedback .= '</div>';