From 24ea454f2e1a1fa3e80be9294c41b445fb550959 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 24 Jan 2009 12:02:58 -0800 Subject: [PATCH] easier to read logic --- ext/index/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/index/main.php b/ext/index/main.php index aed557ca..f120d057 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -86,7 +86,7 @@ class Index implements Extension { send_event(new PostListBuildingEvent($event->context, $search_terms)); - if(!(count($search_terms) == 0 && count($images) == 0)) { + if(count($search_terms) > 0 || count($images) > 0 || $page_number > 0) { $this->theme->set_page($page_number, $total_pages, $search_terms); $this->theme->display_page($event->page, $images); }