0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

revert CSV separator to ";"

This reverts c5c42cfbe8 ("remove custom
field separator; just go with the default php behaviour").

That change didn't improve anything on
https://sourceforge.net/p/postfixadmin/bugs/386/ - it "just" changed the
CSV file format which might break existing workflows and/or tools of our
users.
This commit is contained in:
Christian Boltz 2018-07-10 03:20:38 +02:00
parent 39bb2dbcd6
commit 77670f36f6
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C

View File

@ -107,7 +107,7 @@ if (safeget('output') == 'csv') {
$columns[] = $key;
}
}
fputcsv($out, $header);
fputcsv($out, $header, ';');
# print items as csv
foreach ($items as $item) {
@ -115,7 +115,7 @@ if (safeget('output') == 'csv') {
foreach ($columns as $column) {
$fields[] = $item[$column];
}
fputcsv($out, $fields);
fputcsv($out, $fields, ';');
}
fclose($out);