add isset($_REQUEST['debug']) before testing value for true (#6486)
Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
parent
2816a54a8f
commit
2bdf0d382e
|
|
@ -38,7 +38,7 @@ class auto_loader {
|
||||||
$class_name = preg_replace('[^a-zA-Z0-9_]', '', $class_name);
|
$class_name = preg_replace('[^a-zA-Z0-9_]', '', $class_name);
|
||||||
|
|
||||||
//save the log to the syslog server
|
//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);
|
openlog("PHP", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ class auto_loader {
|
||||||
}
|
}
|
||||||
|
|
||||||
//save the log to the syslog server
|
//save the log to the syslog server
|
||||||
if ($_REQUEST['debug'] == 'true') {
|
if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == 'true') {
|
||||||
closelog();
|
closelog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue