Commit f0f2d61b authored by Tim Schoondergang's avatar Tim Schoondergang
Browse files

Merge branch '31-in-export2csv-opnly-calls-cleanfromdb-on-a-string' into 'master'

Resolve "in export2Csv opnly calls cleanFromDB on a string"

Closes #31

See merge request !55
parents e3beee6c 72255c84
......@@ -1023,7 +1023,10 @@ class DB
fputcsv($fp, array_keys($row), $delimiter, $enclosure, $escape_char);
foreach ($row as $k => $v) {
$row[$k] = self::cleanFromDB($v);
if (is_string($v)) {
$v = self::cleanFromDB($v);
$row[$k] = $v;
fputcsv($fp, $row, $delimiter, $enclosure, $escape_char);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment