From: moodler Date: Wed, 14 May 2003 15:23:54 +0000 (+0000) Subject: Fix the order of questions when shuffle is NOT being used. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ada728e24d9553843cf1e2e8a4c9c541c5f5f827;p=moodle.git Fix the order of questions when shuffle is NOT being used. See bug 423 for details: http://moodle.org/bugs/bug.php?op=show&bugid=423 --- diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 69b9fb6776..0e2a03ad67 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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 } }