瀏覽代碼

Update authentication.php

FusionPBX 2 年之前
父節點
當前提交
7e51f10a3f
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      core/authentication/resources/classes/authentication.php

+ 4 - 2
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;