pull fix for invalid page numbers
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@48 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
187de18322
commit
cb7e84a346
@ -6,6 +6,7 @@ class Index extends Extension {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page == "index")) {
|
||||
if($event->get_arg(0) == 'rss') {
|
||||
$this->do_rss();
|
||||
if($page_number == 0) $page_number = 1; // invalid -> 0
|
||||
}
|
||||
else {
|
||||
$search_terms = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user