From 278ce1e71a1667be8f7c21e6b6d6bcaa03062cf7 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 1 Aug 2007 16:21:14 +0000 Subject: [PATCH] hax git-svn-id: file:///home/shish/svn/shimmie2/trunk@409 7f39781d-f577-437e-ae19-be835c7a54ca --- themes/danbooru/themelet.class.php | 1 + themes/default/themelet.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/themes/danbooru/themelet.class.php b/themes/danbooru/themelet.class.php index b2eefae8..3dc3b483 100644 --- a/themes/danbooru/themelet.class.php +++ b/themes/danbooru/themelet.class.php @@ -10,6 +10,7 @@ class Themelet { public function display_paginator($page, $base, $query, $page_number, $total_pages) { + if($total_pages == 0) $total_pages = 1; $body = $this->build_paginator($page_number, $total_pages, $base, $query); $page->add_block(new Block(null, $body, "main", 90)); } diff --git a/themes/default/themelet.class.php b/themes/default/themelet.class.php index 562ab91e..6fe3f348 100644 --- a/themes/default/themelet.class.php +++ b/themes/default/themelet.class.php @@ -10,6 +10,7 @@ class Themelet { public function display_paginator($page, $base, $query, $page_number, $total_pages) { + if($total_pages == 0) $total_pages = 1; $body = $this->build_paginator($page_number, $total_pages, $base, $query); $page->add_block(new Block(null, $body, "main", 90)); }