Fix pagination next link appearing when it shouldn't
This commit is contained in:
parent
c563c2879b
commit
ba4f4d337c
|
|
@ -146,7 +146,7 @@ class Index
|
|||
$paginationLinks[] = new LastLink($this->buildUrl($request, ['page' => ['offset' => floor(($total - 1) / $limit) * $limit]]));
|
||||
}
|
||||
|
||||
if (($total === null && $count === $limit) || $offset + $limit < $total) {
|
||||
if (($total === null && $count === $limit) || $offset + $count < $total) {
|
||||
$paginationLinks[] = new NextLink($this->buildUrl($request, ['page' => ['offset' => $offset + $limit]]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue