Fix: #14922 - Json encode error

Fixes: #14922
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-03-01 23:56:27 +01:00
commit e339fe3ec7

View File

@ -268,7 +268,11 @@ class ExportJson extends ExportPlugin
$data[$columns[$i]] = $record[$i];
}
if (!Export::outputHandler($this->encode($data))) {
$encodedData = $this->encode($data);
if (! $encodedData) {
return false;
}
if (! Export::outputHandler($encodedData)) {
return false;
}
}