Skip to content

Commit

Permalink
Fix notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Mar 15, 2007
1 parent b4c46a8 commit 779d35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/editlib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 779d35f

Please sign in to comment.