mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20a6a9d1b1 |
@@ -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
|
parseCSV 0.4 beta
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
Date: 11-Apr-2008
|
Date: 11-Apr-2008
|
||||||
|
|||||||
@@ -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/
|
http://code.google.com/p/parsecsv-for-php/
|
||||||
|
|
||||||
|
|
||||||
@@ -501,7 +501,7 @@ class parseCSV {
|
|||||||
$entry = array();
|
$entry = array();
|
||||||
|
|
||||||
// create heading
|
// create heading
|
||||||
if ( $this->heading && !$append ) {
|
if ( $this->heading && !$append && !empty($fields) ) {
|
||||||
foreach( $fields as $key => $value ) {
|
foreach( $fields as $key => $value ) {
|
||||||
$entry[] = $this->_enclose_value($value);
|
$entry[] = $this->_enclose_value($value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user