]> git.mjollnir.org Git - moodle.git/commitdiff
Description questions should not be selected randomly
authormoodler <moodler>
Sun, 6 Jul 2003 04:08:11 +0000 (04:08 +0000)
committermoodler <moodler>
Sun, 6 Jul 2003 04:08:11 +0000 (04:08 +0000)
mod/quiz/lib.php

index 585b2b0cb0b5cd7f51ec3085623c2d17e81b7af7..8c569f18ad8a227bf0d2a5a84025f96de7fee5b6 100644 (file)
@@ -931,7 +931,10 @@ function quiz_choose_random_questions($category, $draws, $excluded=0) {
 /// creates a random subset of that size - returned as an array of questions
 
     if (!$pool = get_records_select_menu("quiz_questions", 
-                "category = '$category' AND id NOT IN ($excluded) AND qtype <> ".RANDOM, "", "id,qtype")) {
+                "category = '$category' AND id NOT IN ($excluded) 
+                                        AND qtype <> ".RANDOM." 
+                                        AND qtype <> ".DESCRIPTION, 
+                                        "", "id,qtype")) {
         return false;
     }