Auto Loader [Class]: Updates for PHP 8.1
This commit is contained in:
parent
80ce576ea5
commit
4de76b44f2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue