Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't give fatal error when questions were not found.

  • Loading branch information...
commit 9a652ddb2b0512bdd76532c49944074d5a62f580 1 parent f343161
paca70 authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/quiz/lib.php
View
6 mod/quiz/lib.php
@@ -967,7 +967,11 @@ function quiz_print_question_list($questionlist, $grades) {
$order = explode(",", $questionlist);
if (!$questions = get_records_list("quiz_questions", "id", $questionlist)) {
- error("No questions were found!");
+ echo "<P align=center>";
+ print_string("noquestions", "quiz");
+ echo "</P>";
+ return;
+
}
$strorder = get_string("order");
Please sign in to comment.
Something went wrong with that request. Please try again.