From 7e6fbcbf1da9aeecece10f47d897edd774fd37f8 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 19 Feb 2020 19:54:10 -0700 Subject: [PATCH] Destinations (Class): Adjust select() method so defaults to top of options when no option selected. --- app/destinations/resources/classes/destinations.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index bb2738df61..b72856e724 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -323,7 +323,9 @@ if (!class_exists('destinations')) { $destination_label = str_replace("menu-exec-app", "", $destination_label); $destination_label = str_replace("transfer", "", $destination_label); $destination_label = str_replace("XML ".$_SESSION['domain_name'], "", $destination_label); - $response .= " \n"; + if ($destination_value != '' || $destination_label != '') { + $response .= " \n"; + } } $response .= " \n"; if (if_group("superadmin")) {