Avoid stating 0 as the total page count

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-07-29 03:51:15 +00:00
committed by WineHQ
parent 1567fa2a32
commit cd0542a893

View File

@@ -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;