From b84477000a9a9dd221802b8bc3f0f10d913c7ae9 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 7 Jun 2012 12:32:41 +0100 Subject: [PATCH] MDL-33577 qtype_multianswer: Fix strict syntax warning. --- question/type/multianswer/renderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/type/multianswer/renderer.php b/question/type/multianswer/renderer.php index 29c23d68560..547a370dc76 100644 --- a/question/type/multianswer/renderer.php +++ b/question/type/multianswer/renderer.php @@ -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),