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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;