Add defaults for limit and offset in Icinga\Protocol\Ldap\Query

This commit is contained in:
Johannes Meyer 2015-02-06 16:32:59 +01:00
parent 8b94e4c701
commit 3852feb069
1 changed files with 3 additions and 3 deletions

View File

@ -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;
} }
/** /**