fixed pagination indexing

beta
Ro 4 years ago
parent 8e9b6ac422
commit b75d045eec

@ -63,6 +63,10 @@ class Book
$limit = count($filtered) - 1;
}
$range = $page * $limit - $limit;
if ($range != 0) {
$range = $range + 1;
}
for ($i = 0; $i <= $limit; $i++) {
if (isset($filtered[$i + $range])) {
array_push($folder, $filtered[$i + $range]);

Loading…
Cancel
Save