empty board index will now display the page navigator properly

This commit is contained in:
Trevor Slocum 2009-09-19 21:57:57 -07:00
parent 3a797ea3ef
commit 2213b136b7

View File

@ -85,13 +85,14 @@ EOF;
return $return; return $return;
} }
function buildPage($htmlposts, $parent, $pages=-1, $thispage=0) { function buildPage($htmlposts, $parent, $pages=0, $thispage=0) {
global $tinyib; global $tinyib;
$managelink = basename($_SERVER['PHP_SELF']) . "?manage"; $managelink = basename($_SERVER['PHP_SELF']) . "?manage";
$postingmode = ""; $postingmode = "";
$pagenavigator = ""; $pagenavigator = "";
if ($parent == 0) { if ($parent == 0) {
$pages = max($pages, 0);
$previous = ($thispage == 1) ? "index" : $thispage - 1; $previous = ($thispage == 1) ? "index" : $thispage - 1;
$next = $thispage + 1; $next = $thispage + 1;