mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Fix local/global delimiter bug between output() and _enclose_value() by
setting global delimiter to local if not null
This commit is contained in:
@@ -463,6 +463,9 @@ class parseCSV {
|
||||
if ( $delimiter === null ) {
|
||||
$delimiter = $this->output_delimiter;
|
||||
}
|
||||
else {
|
||||
$this->output_delimiter = $delimiter;
|
||||
}
|
||||
|
||||
$data = $this->unparse($data, $fields, null, null, $delimiter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user