mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Auto Loader [Class]: Updates for PHP 8.1
This commit is contained in:
@@ -65,7 +65,7 @@ class auto_loader {
|
||||
//third priority
|
||||
$path = $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/app/".$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;
|
||||
@@ -81,7 +81,7 @@ class auto_loader {
|
||||
foreach ($results as &$class_file) {
|
||||
if (!$class_found) {
|
||||
$class_found = true;
|
||||
if ($_REQUEST['debug'] == 'true') {
|
||||
if (!empty($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') {
|
||||
syslog(LOG_WARNING, "[php][autoloader] name: ".$class_name.", path: ".$class_file.", line: ".__line__);
|
||||
}
|
||||
include $class_file;
|
||||
|
||||
Reference in New Issue
Block a user