mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Should fix #99 (zeros breaking lines)
see https://github.com/parsecsv/parsecsv-for-php/issues/99
This commit is contained in:
@@ -731,7 +731,7 @@ class parseCSV {
|
||||
}
|
||||
|
||||
// end of field/row/csv
|
||||
} elseif (($ch == $this->delimiter || $ch == "\n" || $ch == "\r" || $ch === false) && !$enclosed) {
|
||||
} elseif (($ch === $this->delimiter || $ch == "\n" || $ch == "\r" || $ch === false) && !$enclosed) {
|
||||
$key = (!empty($head[$col])) ? $head[$col] : $col;
|
||||
$row[$key] = ($was_enclosed) ? $current : trim($current);
|
||||
$current = '';
|
||||
|
||||
Reference in New Issue
Block a user