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/IsisMainItemIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/iterators/IsisMainItemIterator.php') diff --git a/classes/iterators/IsisMainItemIterator.php b/classes/iterators/IsisMainItemIterator.php index 8bcbfe4..2c1784a 100644 --- a/classes/iterators/IsisMainItemIterator.php +++ b/classes/iterators/IsisMainItemIterator.php @@ -65,7 +65,7 @@ class IsisMainItemIterator implements Iterator * Check if there are more rows. */ function has_more_rows() { - return $this->row <= $this->rows; + return $this->row < $this->rows - 1; } /** -- cgit v1.2.3