SimpleQuery: Do not report to have a limit if there is none
This commit is contained in:
parent
5d3eb5e8cb
commit
56c506c8af
|
@ -380,7 +380,7 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
|
|||
*/
|
||||
public function hasLimit()
|
||||
{
|
||||
return $this->limitCount !== null;
|
||||
return $this->limitCount !== null && $this->limitCount > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue