]> git.mjollnir.org Git - moodle.git/commitdiff
$answers is innitialized to defined QUIZ_MAX_NUMBER_ANSWERS.
authorthepurpleblob <thepurpleblob>
Thu, 17 Jun 2004 16:44:47 +0000 (16:44 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 17 Jun 2004 16:44:47 +0000 (16:44 +0000)
Was wrongly left fixed at 6

mod/quiz/question.php

index 66757dda4f1c76ab510d7c21705e66785c2cb480..6b4a4aeb0e537c0fe147e9c64f365577bde43c4c 100644 (file)
             if (!empty($options->answers)) {
                 $answersraw = get_records_list("quiz_answers", "id", $options->answers);
             }
-            for ($i=0; $i<6; $i++) {
+            for ($i=0; $i<QUIZ_MAX_NUMBER_ANSWERS; $i++) {
                 $answers[] = "";   // Make answer slots, default as blank
             }
             if (!empty($answersraw)) {