fix assertion error on invalid page numbers
git-svn-id: file:///home/shish/svn/shimmie2/trunk@47 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
70a34bbff5
commit
ad37982680
@ -9,6 +9,7 @@ class Index extends Extension {
|
|||||||
|
|
||||||
if($event->count_args() > 0) {
|
if($event->count_args() > 0) {
|
||||||
$page_number = int_escape($event->get_arg(0));
|
$page_number = int_escape($event->get_arg(0));
|
||||||
|
if($page_number == 0) $page_number = 1; // invalid -> 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['search'])) {
|
if(isset($_GET['search'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user