Permalink
Browse files

Description questions should not be selected randomly

  • Loading branch information...
moodler
moodler committed Jul 6, 2003
1 parent 5cbf218 commit 575de48fc393c4b5c3f235e11cff5a2624f3c59a
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/quiz/lib.php
View
@@ -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;
}

0 comments on commit 575de48

Please sign in to comment.