From 7d0ffb0fe6ccf053082b654a52faf20a8a0cc7ba Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 13 Sep 2007 10:46:39 +0000 Subject: [PATCH] MDL-11231 - Missing "correct" tick in Close question with answer '0'. --- 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 3e946bb3f38..e3b0cda5233 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -275,7 +275,7 @@ class embedded_cloze_qtype extends default_questiontype { } /// Determine style - if ($options->feedback && !empty($response)) { + if ($options->feedback && $response != '') { $style = 'class = "'.question_get_feedback_class($chosenanswer->fraction).'"'; $feedbackimg = question_get_feedback_image($chosenanswer->fraction); } else {