diff --git a/src/Handler/Index.php b/src/Handler/Index.php index 923bdcf..dbe9adb 100644 --- a/src/Handler/Index.php +++ b/src/Handler/Index.php @@ -95,7 +95,7 @@ class Index implements RequestHandlerInterface $models = $adapter->get($query); - if ((count($models) && $total === null) || $offset + $limit < $total) { + if ((count($models) === $limit && $total === null) || $offset + $limit < $total) { $paginationLinks[] = new NextLink($this->buildUrl($request, ['page' => ['offset' => $offset + $limit]])); }