Authentication [Class]: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-05-11 13:40:17 +00:00
parent c01c2d7d31
commit 5badf55c3c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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