From be7be91fdbe6003c7d4a40ebf5127752ca8d234d Mon Sep 17 00:00:00 2001 From: tjhunt Date: Sat, 10 Mar 2007 00:37:53 +0000 Subject: [PATCH] MDL-8177 - Oops. In Moodle 1.5, the table was called something different. --- mod/quiz/questiontypes/random/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/questiontypes/random/questiontype.php b/mod/quiz/questiontypes/random/questiontype.php index 6c025144a8d..80180eeb935 100644 --- a/mod/quiz/questiontypes/random/questiontype.php +++ b/mod/quiz/questiontypes/random/questiontype.php @@ -54,7 +54,7 @@ class quiz_random_qtype extends quiz_default_questiontype { } else { $categorylist = $question->category; } - if ($catrandoms = get_records_select('question', + if ($catrandoms = get_records_select('quiz_questions', "category IN ($categorylist) AND parent = '0' AND hidden = '0'