mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Fix that CSV exports contain empty strings instead of zeros
This commit is contained in:
parent
6c7f1e5466
commit
ff04a2ea43
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue