From cd0542a8930fa7e488713cc44f9493313cf9ae91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 29 Jul 2007 03:51:15 +0000 Subject: [PATCH] Avoid stating 0 as the total page count --- include/objectManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/objectManager.php b/include/objectManager.php index a0d0317..b79166a 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -698,6 +698,8 @@ class ObjectManager $iTotalEntries = $oObject->objectGetEntriesCount($this->bIsQueue, $this->bIsRejected); $iNumPages = ceil($iTotalEntries / $iItemsPerPage); + if($iNumPages == 0) + $iNumPages = 1; /* Check current page value */ $iPage = isset($aClean['iPage']) ? $aClean['iPage'] : 1;