diff --git a/include/objectManager.php b/include/objectManager.php index 428a543..49f26b5 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -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 '