diff options
Diffstat (limited to 'classes/iterators/IsisMethodIterator.php')
-rw-r--r-- | classes/iterators/IsisMethodIterator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/iterators/IsisMethodIterator.php b/classes/iterators/IsisMethodIterator.php index 4d2bbd4..e5188d3 100644 --- a/classes/iterators/IsisMethodIterator.php +++ b/classes/iterators/IsisMethodIterator.php @@ -64,6 +64,6 @@ class IsisMethodIterator implements Iterator * Check if there is a current element after calls to rewind() or next(). */ function valid() { - return $this->position <= $this->total; + return $this->position < $this->total - 1; } } |