pagination fix

This commit is contained in:
Your Name 2025-10-14 15:16:37 -04:00
parent 3c6edc5277
commit 44158a0b00

View file

@ -40,7 +40,7 @@ function nextButton($params) {
function pageLinks() {
global $page;
global $cat;
for ($i=0; $i < (intval(getRowCount($cat)/14)+1); $i++) {
for ($i=0; $i < (intval(getRowCount($cat)/14)); $i++) {
if ($page == $i+1) {
echo("<td class='selectedpage'>");
} else {
@ -57,7 +57,7 @@ function pageButtons() {
backButton(params($page-1));
}
pageLinks();
if ($page < intval(getRowCount($cat)/14)+1) {
if ($page < intval(getRowCount($cat)/14)) {
nextButton(params($page+1));
}
}