Authentication [Class]: Updates for PHP 8.1
This commit is contained in:
@@ -415,7 +415,7 @@ class authentication {
|
|||||||
$this->domain_name = $_SERVER["HTTP_HOST"];
|
$this->domain_name = $_SERVER["HTTP_HOST"];
|
||||||
|
|
||||||
//get the domain name from the username
|
//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"] ?? '');
|
$username_array = explode("@", $_REQUEST["username"] ?? '');
|
||||||
if (count($username_array) > 1) {
|
if (count($username_array) > 1) {
|
||||||
//get the domain name
|
//get the domain name
|
||||||
|
|||||||
Reference in New Issue
Block a user