mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix that CSV exports contain empty strings instead of zeros
This commit is contained in:
parent
6c7f1e5466
commit
ff04a2ea43
@ -37,7 +37,7 @@ class Csv
|
||||
}
|
||||
$out = array();
|
||||
foreach ($row as & $val) {
|
||||
$out[] = '"' . ($val ? str_replace('"', '""', $val) : '') . '"';
|
||||
$out[] = '"' . ($val == '0' ? '0' : ($val ? str_replace('"', '""', $val) : '')) . '"';
|
||||
}
|
||||
$csv .= implode(',', $out) . "\r\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user