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
1 changed files with 1 additions and 1 deletions

View File

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