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 = '';