]> git.mjollnir.org Git - moodle.git/commitdiff
fixed stupid bug in code for adding random questions
authorgustav_delius <gustav_delius>
Thu, 3 Feb 2005 18:04:15 +0000 (18:04 +0000)
committergustav_delius <gustav_delius>
Thu, 3 Feb 2005 18:04:15 +0000 (18:04 +0000)
mod/quiz/multiple.php

index b9ceb1b164f2ea72f82f583337418a048f674667..411771f546f8edc83adde09e6d994b3c7600a5a7 100644 (file)
@@ -41,7 +41,7 @@
                 // now remove the ones that are already used in this quiz
                 if ($questionids = explode(',', $modform->questions)) {
                     foreach ($questionids as $questionid) {
-                        unset($existingquestions[$key]);
+                        unset($existingquestions[$questionid]);
                     }
                 }
                 // now take as many of these as needed