mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Make page/limit params work if either of those is hardcoded
This commit is contained in:
parent
eae4cd3b2a
commit
dbab546f0a
@ -423,7 +423,7 @@ abstract class BaseQuery implements Filterable
|
|||||||
*/
|
*/
|
||||||
public function paginate($limit = null, $page = null)
|
public function paginate($limit = null, $page = null)
|
||||||
{
|
{
|
||||||
if ($page === null && $limit === null) {
|
if ($page === null || $limit === null) {
|
||||||
$request = \Zend_Controller_Front::getInstance()->getRequest();
|
$request = \Zend_Controller_Front::getInstance()->getRequest();
|
||||||
|
|
||||||
if ($page === null) {
|
if ($page === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user