From 20a6a9d1b1b88123ba0435feae5ae26a8f4703d2 Mon Sep 17 00:00:00 2001 From: zynode Date: Fri, 30 May 2008 12:20:39 +0000 Subject: [PATCH] parseCSV 0.4.1 beta git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@31 339761fc-0c37-0410-822d-8b8cac1f6a97 --- ChangeLog.txt | 10 ++++++++++ parsecsv.lib.php | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 7ae63c3..f8347f2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,13 @@ +parseCSV 0.4.1 beta +----------------------------------- +Date: 29-May-2008 + +- Fixed a small bug in how the output() method + handles input data. + +----------------------------------- + + parseCSV 0.4 beta ----------------------------------- Date: 11-Apr-2008 diff --git a/parsecsv.lib.php b/parsecsv.lib.php index d0e3e9d..68785a4 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -4,7 +4,7 @@ class parseCSV { /* - Class: parseCSV v0.4 beta + Class: parseCSV v0.4.1 beta http://code.google.com/p/parsecsv-for-php/ @@ -501,7 +501,7 @@ class parseCSV { $entry = array(); // create heading - if ( $this->heading && !$append ) { + if ( $this->heading && !$append && !empty($fields) ) { foreach( $fields as $key => $value ) { $entry[] = $this->_enclose_value($value); }