From 2bdf0d382e42dcda666ea336c0ec5e7f2c0321b8 Mon Sep 17 00:00:00 2001 From: frytimo Date: Wed, 19 Oct 2022 13:49:31 -0400 Subject: [PATCH] add isset($_REQUEST['debug']) before testing value for true (#6486) Co-authored-by: Tim Fry --- resources/classes/auto_loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }