]> git.mjollnir.org Git - moodle.git/commitdiff
Fix the order of questions when shuffle is NOT being used.
authormoodler <moodler>
Wed, 14 May 2003 15:23:54 +0000 (15:23 +0000)
committermoodler <moodler>
Wed, 14 May 2003 15:23:54 +0000 (15:23 +0000)
See bug 423 for details: http://moodle.org/bugs/bug.php?op=show&bugid=423

mod/quiz/lib.php

index 69b9fb67764cb7c727b2748e652af32c7b518324..0e2a03ad67a91c9a61f997c4e06dc8a37fbea44a 100644 (file)
@@ -719,6 +719,8 @@ function quiz_print_quiz_questions($quiz, $results=NULL, $questions=NULL, $shuff
 
         if (!empty($quiz->shufflequestions)) {    // Mix everything up
             $questions = swapshuffle_assoc($questions);
+        } else {
+            $shuffleorder= explode(",", $quiz->questions);  // Use defined order
         }
     }