Merge branch 'MDL-33577' of git://github.com/timhunt/moodle
authorDan Poltawski <dan@moodle.com>
Thu, 7 Jun 2012 15:15:45 +0000 (23:15 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 7 Jun 2012 15:15:45 +0000 (23:15 +0800)
question/type/multianswer/renderer.php

index 29c23d6..547a370 100644 (file)
@@ -279,7 +279,8 @@ class qtype_multianswer_multichoice_inline_renderer
                 $response, array('' => ''), $inputattributes);
 
         $order = $subq->get_order($qa);
-        $rightanswer = $subq->answers[$order[reset($subq->get_correct_response())]];
+        $correctresponses = $subq->get_correct_response();
+        $rightanswer = $subq->answers[$order[reset($correctresponses)]];
         $feedbackpopup = $this->feedback_popup($subq, $matchinganswer->fraction,
                 $subq->format_text($matchinganswer->feedback, $matchinganswer->feedbackformat,
                         $qa, 'question', 'answerfeedback', $matchinganswer->id),