aboutsummaryrefslogtreecommitdiff
path: root/classes/iterators/IsisMethodIterator.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-11 17:50:38 -0300
committerSilvio <silvio@devlet.com.br>2010-08-11 17:50:38 -0300
commitb54991f7f2bbce1f15d2b5d561eeef92194e1700 (patch)
tree2c9a981896ca9ea022f57f93068d384b04c521ea /classes/iterators/IsisMethodIterator.php
parentbd60d89fc77e87a200bd6145ec894fe0a572a209 (diff)
downloadcinisis-b54991f7f2bbce1f15d2b5d561eeef92194e1700.tar.gz
cinisis-b54991f7f2bbce1f15d2b5d561eeef92194e1700.tar.bz2
Fixing iterators' indexes
Diffstat (limited to 'classes/iterators/IsisMethodIterator.php')
-rw-r--r--classes/iterators/IsisMethodIterator.php2
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;
}
}