Fix administration of screenshots so more than page 1 is displayed

This commit is contained in:
Tony Lambregts
2005-07-29 02:00:53 +00:00
committed by WineHQ
parent 7dcbeab99b
commit dd92c790e0

View File

@@ -69,7 +69,7 @@ if($_REQUEST['page'])
$currentPage = $_REQUEST['page'];
$ItemsPerPage = min($ItemsPerPage,100);
$totalPages = max(ceil($BugLinks/$ItemsPerPage),1);
$totalPages = ceil(getNumberOfImages()/$ItemsPerPage);
$currentPage = min($currentPage,$totalPages);
$offset = (($currentPage-1) * $ItemsPerPage);