From ad37982680d226caf404eb279a228b40464b1648 Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 1 May 2007 13:13:41 +0000 Subject: [PATCH] fix assertion error on invalid page numbers git-svn-id: file:///home/shish/svn/shimmie2/trunk@47 7f39781d-f577-437e-ae19-be835c7a54ca --- core/ext/index.ext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ext/index.ext.php b/core/ext/index.ext.php index c83db9ac..4571abb9 100644 --- a/core/ext/index.ext.php +++ b/core/ext/index.ext.php @@ -9,6 +9,7 @@ class Index extends Extension { if($event->count_args() > 0) { $page_number = int_escape($event->get_arg(0)); + if($page_number == 0) $page_number = 1; // invalid -> 0 } if(isset($_GET['search'])) {