From 80f8d28a83eaf8fcb5aea942bdee23cd5de9f0bd Mon Sep 17 00:00:00 2001 From: mindforge Date: Thu, 14 Jul 2005 16:35:08 +0000 Subject: [PATCH] Merged from 1.5 --- mod/quiz/questiontypes/match/questiontype.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/quiz/questiontypes/match/questiontype.php b/mod/quiz/questiontypes/match/questiontype.php index d1e5397bcd4..1e099274571 100644 --- a/mod/quiz/questiontypes/match/questiontype.php +++ b/mod/quiz/questiontypes/match/questiontype.php @@ -216,9 +216,7 @@ class quiz_match_qtype extends quiz_default_questiontype { ///// Print the input controls ////// echo ''; - foreach ($state->options->order as $key) { - $subquestion = $subquestions[$key]; - + foreach ($subquestions as $key => $subquestion) { /// Subquestion text: echo '
'; echo format_text($subquestion->questiontext,