Simplified switch

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2022-12-14 13:09:27 +00:00
parent 8d06fda694
commit 8d7e3e2229

View File

@ -115,10 +115,7 @@ class ExportCsv extends ExportPlugin
if ($GLOBALS['what'] === 'excel') {
$GLOBALS['csv_terminated'] = "\015\012";
switch ($GLOBALS['excel_edition']) {
case 'win':
// as tested on Windows with Excel 2002 and Excel 2007
$GLOBALS['csv_separator'] = ';';
break;
case 'win': // as tested on Windows with Excel 2002 and Excel 2007
case 'mac_excel2003':
$GLOBALS['csv_separator'] = ';';
break;