From b54991f7f2bbce1f15d2b5d561eeef92194e1700 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 11 Aug 2010 17:50:38 -0300 Subject: Fixing iterators' indexes --- classes/iterators/IsisMethodIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/iterators/IsisMethodIterator.php') 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; } } -- cgit v1.2.3