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"; } }