From a4fddc7897d39d755b351d84e569cf6857448a67 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 12 May 2023 20:30:17 -0600 Subject: [PATCH] Update authentication.php --- core/authentication/resources/classes/authentication.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 81c0a9c569..34a19f2015 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -482,8 +482,10 @@ class authentication { $obj->set(); //set the domain settings - $_SESSION['domain_name'] = $this->domain_name; - $_SESSION['domain_parent_uuid'] = $_SESSION["domain_uuid"]; + if (!empty($this->domain_name) && !empty($_SESSION["domain_uuid"])) { + $_SESSION['domain_name'] = $this->domain_name; + $_SESSION['domain_parent_uuid'] = $_SESSION["domain_uuid"]; + } //set the domain name return $this->domain_name;