SimpleQuery: Do not report to have a limit if there is none

This commit is contained in:
Johannes Meyer 2015-06-26 14:21:09 +02:00
parent 5d3eb5e8cb
commit 56c506c8af

View File

@ -380,7 +380,7 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
*/ */
public function hasLimit() public function hasLimit()
{ {
return $this->limitCount !== null; return $this->limitCount !== null && $this->limitCount > 0;
} }
/** /**