From 42f4e8a86058a34ea85764b1d7de08d838ed7371 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 13 May 2020 15:54:52 +0200 Subject: [PATCH] LSdebug: check class LSlog exists before using it --- src/includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/includes/functions.php b/src/includes/functions.php index fb464bec..a40c5b79 100644 --- a/src/includes/functions.php +++ b/src/includes/functions.php @@ -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]";