diff --git a/question/type/multichoice/questiontype.php b/question/type/multichoice/questiontype.php index 92f5dfbc154..0c1207d1d56 100644 --- a/question/type/multichoice/questiontype.php +++ b/question/type/multichoice/questiontype.php @@ -309,7 +309,11 @@ class question_multichoice_qtype extends default_questiontype { $a->class = question_get_feedback_class(1); } if (($options->feedback && $chosen) || $options->correct_responses) { - $a->feedbackimg = question_get_feedback_image($answer->fraction > 0 ? 1 : 0, $chosen && $options->feedback); + if ($type == ' type="checkbox" ') { + $a->feedbackimg = question_get_feedback_image($answer->fraction > 0 ? 1 : 0, $chosen && $options->feedback); + } else { + $a->feedbackimg = question_get_feedback_image($answer->fraction, $chosen && $options->feedback); + } } // Print the answer text