From 5badf55c3c75b7ad1bc5fb71e84332082362632e Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 11 May 2023 13:40:17 +0000 Subject: [PATCH] Authentication [Class]: Updates for PHP 8.1 --- core/authentication/resources/classes/authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index e6a59a75be..1640283423 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -415,7 +415,7 @@ class authentication { $this->domain_name = $_SERVER["HTTP_HOST"]; //get the domain name from the username - if ($_SESSION["users"]["unique"]["text"] != "global") { + if (isset($_SESSION["users"]["unique"]) && $_SESSION["users"]["unique"]["text"] != "global") { $username_array = explode("@", $_REQUEST["username"] ?? ''); if (count($username_array) > 1) { //get the domain name