mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +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) {
|
if ($dump) {
|
||||||
$data=varDump($data);
|
$data=varDump($data);
|
||||||
}
|
}
|
||||||
LSlog :: debug($data);
|
if (class_exists('LSlog'))
|
||||||
|
LSlog :: debug($data);
|
||||||
|
|
||||||
if (!is_array($data) && !is_object($data)) {
|
if (!is_array($data) && !is_object($data)) {
|
||||||
$data="[$data]";
|
$data="[$data]";
|
||||||
|
|
Loading…
Reference in a new issue