From ba95414539dc6acf537fcdaf7f72c6942508f3fe Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Thu, 14 Jan 2010 21:59:07 +0000 Subject: [PATCH] MDL-21336 testing with $correct != '' so that correct answer 0 is shown in multianswer --- question/type/multianswer/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= '
'; -- 2.39.5