From 484d9af4441fa48ff7eee5bb7700538338522407 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 20 Jun 2018 23:32:03 -0600 Subject: [PATCH] Update destinations.php --- app/destinations/destinations.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 228401229d..fbc86203b4 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -69,9 +69,15 @@ $order = check_str($_GET["order"]); //set the type - if ($_GET['type'] == 'outbound') { + if ($_GET['type'] == 'inbound') { + $destination_type = 'inbound'; + } + elseif ($_GET['type'] == 'outbound') { $destination_type = 'outbound'; } + elseif ($_GET['type'] == 'local') { + $destination_type = 'local'; + } else { $destination_type = 'inbound'; } @@ -180,11 +186,18 @@ echo "
\n"; echo " \n"; - if ($_GET['type'] == 'outbound') { - echo " \n"; - } else { + if ($destination_type == 'inbound') { echo " \n"; + echo " \n"; } + if ($destination_type == 'outbound') { + echo " \n"; + echo " \n"; + } + if ($destination_type == 'local') { + echo " \n"; + echo " \n"; + } if (permission_exists('destination_import')) { echo "\n";