From: Pierre Pichet Date: Thu, 14 Jan 2010 21:59:07 +0000 (+0000) Subject: MDL-21336 testing with $correct != '' so that correct answer 0 is shown in multianswer X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ba95414539dc6acf537fcdaf7f72c6942508f3fe;p=moodle.git MDL-21336 testing with $correct != '' so that correct answer 0 is shown in multianswer --- diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 30eab72da2..6eaed546e9 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -357,7 +357,7 @@ class embedded_cloze_qtype extends default_questiontype { } } } - if ($correctanswer) { + if ($correctanswer != '' ) { $feedback = '
'; $feedback .= get_string('correctansweris', 'quiz', s($correctanswer)); $feedback .= '
';