mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 07:23:47 +01:00
LSdebug: check class LSlog exists before using it
This commit is contained in:
parent
8e2c521d18
commit
42f4e8a860
1 changed files with 2 additions and 1 deletions
|
@ -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]";
|
||||
|
|
Loading…
Reference in a new issue