diff --git a/resources/classes/auto_loader.php b/resources/classes/auto_loader.php index 9275bcf868..a1bf5443b3 100644 --- a/resources/classes/auto_loader.php +++ b/resources/classes/auto_loader.php @@ -38,7 +38,7 @@ class auto_loader { $class_name = preg_replace('[^a-zA-Z0-9_]', '', $class_name); //save the log to the syslog server - if ($_REQUEST['debug'] == 'true') { + if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') { openlog("PHP", LOG_PID | LOG_PERROR, LOG_LOCAL0); } @@ -92,7 +92,7 @@ class auto_loader { } //save the log to the syslog server - if ($_REQUEST['debug'] == 'true') { + if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') { closelog(); } }