From 2213b136b7237bc94f38019d7b6f29002242c2b6 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Sat, 19 Sep 2009 21:57:57 -0700 Subject: [PATCH] empty board index will now display the page navigator properly --- inc/html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/html.php b/inc/html.php index dc294ee..15ecb88 100644 --- a/inc/html.php +++ b/inc/html.php @@ -85,13 +85,14 @@ EOF; return $return; } -function buildPage($htmlposts, $parent, $pages=-1, $thispage=0) { +function buildPage($htmlposts, $parent, $pages=0, $thispage=0) { global $tinyib; $managelink = basename($_SERVER['PHP_SELF']) . "?manage"; $postingmode = ""; $pagenavigator = ""; if ($parent == 0) { + $pages = max($pages, 0); $previous = ($thispage == 1) ? "index" : $thispage - 1; $next = $thispage + 1;