From db89323b3fda19fe44eae9e76116d72e6ae7d7d4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 26 Jun 2018 11:19:39 -0600 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index e674b4294a..c21f403e71 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -143,12 +143,12 @@ } //set the default context - if ($destination_type =="outbound" && strlen($destination_context) == 0) { - $destination_context = $_SESSION['domain_name']; - } if ($destination_type =="inbound" && strlen($destination_context) == 0) { $destination_context = 'public'; } + if ($destination_type =="outbound" && strlen($destination_context) == 0) { + $destination_context = $_SESSION['domain_name']; + } //check for all required data $msg = '';