mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Add defaults for limit and offset in Icinga\Protocol\Ldap\Query
This commit is contained in:
parent
8b94e4c701
commit
3852feb069
@ -27,8 +27,8 @@ class Query
|
|||||||
protected $connection;
|
protected $connection;
|
||||||
protected $filters = array();
|
protected $filters = array();
|
||||||
protected $fields = array();
|
protected $fields = array();
|
||||||
protected $limit_count;
|
protected $limit_count = 0;
|
||||||
protected $limit_offset;
|
protected $limit_offset = 0;
|
||||||
protected $sort_columns = array();
|
protected $sort_columns = array();
|
||||||
protected $count;
|
protected $count;
|
||||||
protected $base;
|
protected $base;
|
||||||
@ -111,7 +111,7 @@ class Query
|
|||||||
*/
|
*/
|
||||||
public function hasLimit()
|
public function hasLimit()
|
||||||
{
|
{
|
||||||
return $this->limit_count !== null;
|
return $this->limit_count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user