forked from projects/fipamo
fixed pagination indexing
This commit is contained in:
parent
8e9b6ac422
commit
b75d045eec
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue