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,6 +284,7 @@ function LSdebug($data,$dump=false) {
if ($dump) {
$data=varDump($data);
}
if (class_exists('LSlog'))
LSlog :: debug($data);
if (!is_array($data) && !is_object($data)) {