aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-02-25 16:38:30 +0100
committerMoritz Strohm <strohm@data-quest.de>2022-04-12 15:44:24 +0000
commitb2ca873c74a5fe7438b0b89e4e984f0c5f454f31 (patch)
tree7540039986610b2b19af844ab918ef57373104a2
parent6779c792c6560ff589f299a7ec78fc792b44b784 (diff)
fixed PHP8 warning in StudipPDO class
-rw-r--r--lib/classes/StudipPDO.class.php2
1 files changed, 1 insertions, 1 deletions
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 = [];