fix pagination condition

This commit is contained in:
ghost 2021-08-08 13:03:11 +03:00
parent 65f88f08b4
commit bb19092d82

View File

@ -32,7 +32,7 @@ if (SEF_MODE && isset($_SERVER['QUERY_STRING'])) {
} }
} }
if ($page > 1) { if ($page > 0) {
$limit = PAGE_LIMIT * $page - PAGE_LIMIT; $limit = PAGE_LIMIT * $page - PAGE_LIMIT;
} else { } else {
$limit = PAGE_LIMIT * $page; $limit = PAGE_LIMIT * $page;