Add not empty debug

This commit is contained in:
FusionPBX
2023-05-08 17:21:52 -06:00
committed by GitHub
parent 1c6c542d15
commit edb12399ce

View File

@@ -47,7 +47,7 @@ class auto_loader {
//first priority
$path = $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/resources/classes/".$class_name.".php";
$class_found = true;
if ($_REQUEST['debug'] == 'true') {
if (!empty($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') {
syslog(LOG_WARNING, "[php][autoloader] name: ".$class_name.", path: ".$path.", line: ".__line__);
}
include $path;