From ff2c52eda8cb0f2162bcf86d647fe04a39715fef Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 12 May 2023 20:32:44 -0600 Subject: [PATCH] Update domains.php --- resources/classes/domains.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/classes/domains.php b/resources/classes/domains.php index eb4ce71268..4cbb576e17 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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"]; + } } /**