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"];
+				}
 		}
 
 		/**