]> git.mjollnir.org Git - moodle.git/commitdiff
SQL error occured when viewing this page and no questions have been added to the...
authormichaelpenne <michaelpenne>
Thu, 16 Mar 2006 03:26:49 +0000 (03:26 +0000)
committermichaelpenne <michaelpenne>
Thu, 16 Mar 2006 03:26:49 +0000 (03:26 +0000)
mod/quiz/grading.php

index be8312abefd1766e1154af760199d19da780cf5b..50a220286910c2da54bd7e0c6a5f63546c109025 100644 (file)
                    "   AND q.id IN ($questionlist)".
                    "   AND q.qtype = '".ESSAY."'".
                    "   ORDER BY q.name";
-            if (!$questions = get_records_sql($sql)) {
+            if (empty($questionlist) or !$questions = get_records_sql($sql)) {
                 print_heading(get_string('noessayquestionsfound', 'quiz'));
                 print_footer($course);
                 exit();