We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c7f1e5 commit ff04a2eCopy full SHA for ff04a2e
library/Icinga/File/Csv.php
@@ -37,7 +37,7 @@ public function __toString()
37
}
38
$out = array();
39
foreach ($row as & $val) {
40
- $out[] = '"' . ($val ? str_replace('"', '""', $val) : '') . '"';
+ $out[] = '"' . ($val == '0' ? '0' : ($val ? str_replace('"', '""', $val) : '')) . '"';
41
42
$csv .= implode(',', $out) . "\r\n";
43
0 commit comments