LSdebug: check class LSlog exists before using it

This commit is contained in:
Benjamin Renard 2020-05-13 15:54:52 +02:00
parent 8e2c521d18
commit 42f4e8a860

View file

@ -284,7 +284,8 @@ function LSdebug($data,$dump=false) {
if ($dump) {
$data=varDump($data);
}
LSlog :: debug($data);
if (class_exists('LSlog'))
LSlog :: debug($data);
if (!is_array($data) && !is_object($data)) {
$data="[$data]";