Fix: #14922 - Json encode error
Fixes: #14922 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
e339fe3ec7
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user