We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb2085 commit b63ba9dCopy full SHA for b63ba9d
src/Handler/Index.php
@@ -95,7 +95,7 @@ public function handle(Request $request): Response
95
96
$models = $adapter->get($query);
97
98
- if ((count($models) && $total === null) || $offset + $limit < $total) {
+ if ((count($models) === $limit && $total === null) || $offset + $limit < $total) {
99
$paginationLinks[] = new NextLink($this->buildUrl($request, ['page' => ['offset' => $offset + $limit]]));
100
}
101
0 commit comments