Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 9a652ddb2b0512bdd76532c49944074d5a62f580 1 parent f343161
authored April 28, 2003

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  mod/quiz/lib.php
6  mod/quiz/lib.php
@@ -967,7 +967,11 @@ function quiz_print_question_list($questionlist, $grades) {
967 967
     $order = explode(",", $questionlist);
968 968
 
969 969
     if (!$questions = get_records_list("quiz_questions", "id", $questionlist)) {
970  
-        error("No questions were found!");
  970
+        echo "<P align=center>";
  971
+        print_string("noquestions", "quiz");
  972
+        echo "</P>";
  973
+        return;
  974
+
971 975
     }
972 976
 
973 977
     $strorder = get_string("order");

0 notes on commit 9a652dd

Please sign in to comment.
Something went wrong with that request. Please try again.