From 56c506c8afb9548d7387dde5aee30531cef0af4e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 26 Jun 2015 14:21:09 +0200 Subject: [PATCH] SimpleQuery: Do not report to have a limit if there is none --- library/Icinga/Data/SimpleQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Data/SimpleQuery.php b/library/Icinga/Data/SimpleQuery.php index 1183ff327..9751a2756 100644 --- a/library/Icinga/Data/SimpleQuery.php +++ b/library/Icinga/Data/SimpleQuery.php @@ -380,7 +380,7 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator */ public function hasLimit() { - return $this->limitCount !== null; + return $this->limitCount !== null && $this->limitCount > 0; } /**