mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 08:34:04 -04:00
Add defaults for limit and offset in Icinga\Protocol\Ldap\Query
This commit is contained in:
parent
8b94e4c701
commit
3852feb069
1 changed files with 3 additions and 3 deletions
|
|
@ -27,8 +27,8 @@ class Query
|
|||
protected $connection;
|
||||
protected $filters = array();
|
||||
protected $fields = array();
|
||||
protected $limit_count;
|
||||
protected $limit_offset;
|
||||
protected $limit_count = 0;
|
||||
protected $limit_offset = 0;
|
||||
protected $sort_columns = array();
|
||||
protected $count;
|
||||
protected $base;
|
||||
|
|
@ -111,7 +111,7 @@ class Query
|
|||
*/
|
||||
public function hasLimit()
|
||||
{
|
||||
return $this->limit_count !== null;
|
||||
return $this->limit_count > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue