From dbab546f0a3fe5c0e9fbca5dbd3ef70c19dec742 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 13 Mar 2014 15:22:34 +0100 Subject: [PATCH] Make page/limit params work if either of those is hardcoded --- library/Icinga/Data/BaseQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Data/BaseQuery.php b/library/Icinga/Data/BaseQuery.php index 4e6192315..6da7dbb13 100644 --- a/library/Icinga/Data/BaseQuery.php +++ b/library/Icinga/Data/BaseQuery.php @@ -423,7 +423,7 @@ abstract class BaseQuery implements Filterable */ public function paginate($limit = null, $page = null) { - if ($page === null && $limit === null) { + if ($page === null || $limit === null) { $request = \Zend_Controller_Front::getInstance()->getRequest(); if ($page === null) {