fix pagination start value

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

View File

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