Avoid stating 0 as the total page count
This commit is contained in:
committed by
WineHQ
parent
1567fa2a32
commit
cd0542a893
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user