From 779d35f1438976493cb3f441623c8a1b4be9b110 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 15 Mar 2007 12:52:50 +0000 Subject: [PATCH] Fix notice. --- mod/quiz/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 0b30797076..c603803280 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -36,7 +36,7 @@ function quiz_delete_quiz_question($id, &$modform) { unset($questions[$id]); // If we deleted the question at the top and it was followed by // a page break then delete page break as well - if ($id == 0 and $questions[1] == 0) { + if ($id == 0 && count($questions) > 1 && $questions[1] == 0) { unset($questions[1]); } $modform->questions = implode(",", $questions); -- 2.39.5