diff --git a/module/VuFind/src/VuFind/ILS/PaginationHelper.php b/module/VuFind/src/VuFind/ILS/PaginationHelper.php index 28bbd2041cd338c4c10f57a0cf9b86f06bc04ec1..ef675efef4233061719cf24448c8c6982ce9d17f 100644 --- a/module/VuFind/src/VuFind/ILS/PaginationHelper.php +++ b/module/VuFind/src/VuFind/ILS/PaginationHelper.php @@ -145,7 +145,7 @@ class PaginationHelper { $limit = $pageOptions['limit']; $page = $pageOptions['page']; - if (($page - 1) * $limit >= $count) { + if (($page - 1) * $limit >= $count && $page > 1) { throw new \VuFind\Exception\BadRequest('Page number out of range.'); } if ($pageOptions['ilsPaging'] && $limit < $count) {