ChangeSet ID: 31313 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/08/05 14:02:59
Modified files: include : objectManager.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Limit the current page to the available pages
Patch: http://cvs.winehq.org/patch.py?id=31313
Old revision New revision Changes Path 1.44 1.45 +5 -0 appdb/include/objectManager.php
Index: appdb/include/objectManager.php diff -u -p appdb/include/objectManager.php:1.44 appdb/include/objectManager.php:1.45 --- appdb/include/objectManager.php:1.44 5 Aug 2007 19: 2:59 -0000 +++ appdb/include/objectManager.php 5 Aug 2007 19: 2:59 -0000 @@ -709,6 +709,11 @@ class ObjectManager $iPage = isset($aClean['iPage']) ? $aClean['iPage'] : 1; $iCurrentPage = min($iPage, $iNumPages);
+ // if iPage is beyond the maximum number of pages, make it the + // highest page number + if($iPage > $iNumPages) + $iPage = $iNumPages; + /* Display selectors and info */ echo '<div align="center">'; echo "<b>Page $iPage of $iNumPages</b><br />";