From ff0d55aabf6e5cd91cf9951cf33c2d10ba597cda Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 12 Aug 2010 15:11:27 -0300 Subject: Fixing valid() at IsisValueIterator --- classes/iterators/IsisValueIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/iterators') diff --git a/classes/iterators/IsisValueIterator.php b/classes/iterators/IsisValueIterator.php index f10125d..2b41fd2 100644 --- a/classes/iterators/IsisValueIterator.php +++ b/classes/iterators/IsisValueIterator.php @@ -57,6 +57,6 @@ class IsisValueIterator 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; } } -- cgit v1.2.3