From 688bf315e06eecb78eef52772a2bf4e1381b1d94 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 4 Mar 2015 07:04:41 +0000 Subject: [PATCH] Adjusted switch_select_destination() function so doesn't select last (blank) option by default. --- resources/switch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index 5ee5c7a8ee..1cd8f5a480 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -299,7 +299,7 @@ function event_socket_request($fp, $cmd) { fputs($fp, $value."\n"); } fputs($fp, "\n"); //second line feed to end the headers - + usleep(100); //allow time for reponse $response = ""; @@ -915,7 +915,7 @@ function switch_select_destination($select_type, $select_label, $select_name, $s echo "\n"; } } - + //xmpp if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/xmpp/app_config.php")) { @@ -1639,7 +1639,7 @@ function switch_select_destination($select_type, $select_label, $select_name, $s if (strlen($select_label) > 0) { echo " \n"; } - else { + else if (strlen($select_value) > 0) { echo " \n"; } }