mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 15:33: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,6 +284,7 @@ function LSdebug($data,$dump=false) {
|
||||||
if ($dump) {
|
if ($dump) {
|
||||||
$data=varDump($data);
|
$data=varDump($data);
|
||||||
}
|
}
|
||||||
|
if (class_exists('LSlog'))
|
||||||
LSlog :: debug($data);
|
LSlog :: debug($data);
|
||||||
|
|
||||||
if (!is_array($data) && !is_object($data)) {
|
if (!is_array($data) && !is_object($data)) {
|
||||||
|
|
Loading…
Reference in a new issue