From b2ca873c74a5fe7438b0b89e4e984f0c5f454f31 Mon Sep 17 00:00:00 2001 From: Moritz Strohm Date: Fri, 25 Feb 2022 16:38:30 +0100 Subject: fixed PHP8 warning in StudipPDO class --- lib/classes/StudipPDO.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/StudipPDO.class.php b/lib/classes/StudipPDO.class.php index eb3b0df..1677223 100644 --- a/lib/classes/StudipPDO.class.php +++ b/lib/classes/StudipPDO.class.php @@ -43,7 +43,7 @@ class StudipPDO extends PDO // method that is executed on every call to the database) $this->query_count += 1; - if ($GLOBALS['DEBUG_ALL_DB_QUERIES']) { + if (array_key_exists('DEBUG_ALL_DB_QUERIES', $GLOBALS) && $GLOBALS['DEBUG_ALL_DB_QUERIES']) { $trace = debug_backtrace(); $classes = []; -- cgit v1.0