From 7ca455cd56990931db2f7cdcd9a75720689e1579 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 17 Jan 2007 14:54:55 +0000 Subject: [PATCH] The way mulit-response questoins show the right answer is a bit confusing. --- question/type/multichoice/questiontype.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/question/type/multichoice/questiontype.php b/question/type/multichoice/questiontype.php index fda824f50b..916afc8e66 100644 --- a/question/type/multichoice/questiontype.php +++ b/question/type/multichoice/questiontype.php @@ -312,10 +312,10 @@ class question_multichoice_qtype extends default_questiontype { if ($options->readonly) { // Means we need to display answer correctness. - if ($chosen) { - $a->class = question_get_feedback_class($answer->fraction); + if ($answer->fraction > 0) { + $a->class = question_get_feedback_class(1); } - $a->feedbackimg = question_get_feedback_image($answer->fraction, $chosen); + $a->feedbackimg = question_get_feedback_image($answer->fraction > 0 ? 1 : 0, $chosen); } // Print the answer text -- 2.39.5