From: tjhunt Date: Thu, 15 Mar 2007 12:52:50 +0000 (+0000) Subject: Fix notice. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=779d35f1438976493cb3f441623c8a1b4be9b110;p=moodle.git Fix notice. --- 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);