Code cleaning

This commit is contained in:
Benjamin Renard 2020-12-22 18:42:56 +01:00
parent 7535530416
commit 514a2eb0fd

View file

@ -2234,11 +2234,11 @@ class LSldapObject extends LSlog_staticLoggerClass {
}
}
}
$data = json_encode($export, ($pretty?JSON_PRETTY_PRINT:0));
if ($data === false)
$output = json_encode($export, ($pretty?JSON_PRETTY_PRINT:0));
if ($output === false)
self :: log_error("Fail to encode data as JSON");
else
echo $data;
echo $output;
}
/**