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/IsisRowIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/iterators/IsisRowIterator.php') diff --git a/classes/iterators/IsisRowIterator.php b/classes/iterators/IsisRowIterator.php index 739db22..0c1463f 100644 --- a/classes/iterators/IsisRowIterator.php +++ b/classes/iterators/IsisRowIterator.php @@ -53,6 +53,6 @@ class IsisRowIterator implements Iterator * Check if there is a current element after calls to rewind() or next(). */ function valid() { - return $this->row <= $this->rows; + return $this->row <= $this->rows - 1; } } -- cgit v1.2.3