Skip to content

Commit

Permalink
Merge pull request #4 from ebanx/hotfix/writeCSV-delimiter
Browse files Browse the repository at this point in the history
Fix delimiter in writeCSV
  • Loading branch information
vinivf committed Mar 15, 2016
2 parents 7ed9a98 + 64b3f34 commit d673cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlsxwriter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function writeCSV(array $data, array $header_types=array(), $delimiter =

$output = '';
$output .= implode($delimiter, $header_text) . "\n";
$output .= implode("\n", array_map(function($array) {
$output .= implode("\n", array_map(function($array) use (&$delimiter) {
return implode($delimiter, $array);
}, $data));
return $output;
Expand Down

0 comments on commit d673cda

Please sign in to comment.