Auto Loader [Class]: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-05-10 22:37:47 +00:00
parent 80ce576ea5
commit 4de76b44f2
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class auto_loader {
//second priority
$path = $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/core/".$class_name."/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;