ChangeSet ID: 31284 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/07/28 22:51:15
Modified files: include : objectManager.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Avoid stating 0 as the total page count
Patch: http://cvs.winehq.org/patch.py?id=31284
Old revision New revision Changes Path 1.40 1.41 +2 -0 appdb/include/objectManager.php
Index: appdb/include/objectManager.php diff -u -p appdb/include/objectManager.php:1.40 appdb/include/objectManager.php:1.41 --- appdb/include/objectManager.php:1.40 29 Jul 2007 3:51:15 -0000 +++ appdb/include/objectManager.php 29 Jul 2007 3:51:15 -0000 @@ -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;