Add not empty debug
This commit is contained in:
parent
1c6c542d15
commit
edb12399ce
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue