From c143b9fe8325fc97491965c084c8fbbbfa3bae53 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 28 Jun 2023 20:54:34 +0000 Subject: [PATCH] Authentication - Database: Resolve PHP 8.1 warning when using API Key login. --- core/authentication/resources/classes/plugins/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 09e0ffeb2a..75df894d5b 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -155,7 +155,7 @@ class plugin_database { $auth->get_domain(); $this->domain_uuid = $_SESSION['domain_uuid']; $this->domain_name = $_SESSION['domain_name']; - $this->username = $_SESSION['username']; + $this->username = $_SESSION['username'] ?? null; //debug information //echo "domain_uuid: ".$this->domain_uuid."
\n";