mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-07 20:23:51 +00:00
add isset($_REQUEST['debug']) before testing value for true (#6486)
Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user