diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-26 16:52:22 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-26 16:52:22 -0300 |
commit | d7fbda5c30faae0859e59e783cb1ea772e98532d (patch) | |
tree | c1b3e0bd1d3a4c1116b1515f12684dc48a84951f /classes/iterators/IsisMainItemIterator.php | |
parent | eb59e6edb98ce1f53df221e331e016897a3245c0 (diff) | |
download | cinisis-d7fbda5c30faae0859e59e783cb1ea772e98532d.tar.gz cinisis-d7fbda5c30faae0859e59e783cb1ea772e98532d.tar.bz2 |
Boundary fix at IsisMainItemIterator
Diffstat (limited to 'classes/iterators/IsisMainItemIterator.php')
-rw-r--r-- | classes/iterators/IsisMainItemIterator.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/iterators/IsisMainItemIterator.php b/classes/iterators/IsisMainItemIterator.php index 2c1784a..7db95ef 100644 --- a/classes/iterators/IsisMainItemIterator.php +++ b/classes/iterators/IsisMainItemIterator.php @@ -48,7 +48,9 @@ class IsisMainItemIterator implements Iterator */ function current() { $field = $this->class->getMainItemName($this->field); - return $this->valueset[$this->row][$field]; + if (isset($this->valueset[$this->row])) { + return $this->valueset[$this->row][$field]; + } } /** @@ -65,7 +67,7 @@ class IsisMainItemIterator implements Iterator * Check if there are more rows. */ function has_more_rows() { - return $this->row < $this->rows - 1; + return $this->row < $this->rows; } /** |