瀏覽代碼

Update domains.php

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

+ 4 - 2
resources/classes/domains.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2022
+	Portions created by the Initial Developer are Copyright (C) 2008-2023
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -585,7 +585,9 @@ if (!class_exists('domains')) {
 				}
 
 			//set the context
-				$_SESSION["context"] = $_SESSION["domain_name"];
+				if (!empty($_SESSION["domain_name"])) {
+					$_SESSION["context"] = $_SESSION["domain_name"];
+				}
 		}
 
 		/**