Permalink
Browse files

Fixed issue with csv row iteration, throwing an SQLICSVException (Tha…

…nks Edi Modrić !)
  • Loading branch information...
1 parent b987417 commit ee267ebb52b296398b177ea9ef80e448dc637f54 @lolautruche committed Apr 1, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 classes/sourcehandlers/csv/sqlicsvrow.php
  2. +1 −0 doc/CHANGELOG
@@ -72,7 +72,7 @@ protected function initIterator()
*/
public function current()
{
- return $this->rows[current( $this->iteratorPointer )];
+ return $this->fields[current( $this->iteratorPointer )];
}
/**
@@ -108,6 +108,6 @@ public function rewind()
*/
public function valid()
{
- return isset( $this->rows[current( $this->iteratorPointer )] );
+ return isset( $this->fields[current( $this->iteratorPointer )] );
}
}
View
@@ -6,6 +6,7 @@ Fixed issue : Datatypes fromString() / toString() always appear consistent, even
Fixed "Using $this in a non object context in sqlilocation" - http://bit.ly/fzJN8G
Fixed issue with SQLICSVDoc::parse() : Didn't return csv doc object - http://bit.ly/dbphvq
SQLIContentUtils::getRemoteFile() : Added a parameter indicating whether to allow proxy use or not, allowing to override proxy settings from site.ini
+Fixed issue with csv row iteration, throwing an SQLICSVException (Thanks Edi Modrić !)
1.2.0
-----------------

0 comments on commit ee267eb

Please sign in to comment.