SQL error occured when viewing this page and no questions have been added to the quiz. This has been fixed.

This commit is contained in:
michaelpenne
2006-03-16 03:26:49 +00:00
parent 40b6323cd0
commit 2ea3451018
+1 -1
View File
@@ -261,7 +261,7 @@
" 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();