From 3852feb069f8e91b60dd0976d4d6187d8d3beb2d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 6 Feb 2015 16:32:59 +0100 Subject: [PATCH] Add defaults for limit and offset in Icinga\Protocol\Ldap\Query --- library/Icinga/Protocol/Ldap/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Protocol/Ldap/Query.php b/library/Icinga/Protocol/Ldap/Query.php index 8b71fc918..897f12f4e 100644 --- a/library/Icinga/Protocol/Ldap/Query.php +++ b/library/Icinga/Protocol/Ldap/Query.php @@ -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; } /**