diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index 2c4dcec7f5..5115b5502f 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -498,7 +498,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { */ //select if (if_group("superadmin")) { - if (!$tmp_selected) { + if (!$tmp_selected && strlen($ivr_menu_greet_long) > 0) { echo "\n"; if (file_exists($_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/".$ivr_menu_greet_long)) { echo " \n"; @@ -933,7 +933,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } //select if (if_group("superadmin")) { - if (!$tmp_selected) { + if (!$tmp_selected && strlen($ivr_menu_invalid_sound) > 0) { echo "\n"; if (file_exists($_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/".$ivr_menu_invalid_sound)) { echo " \n"; @@ -1029,7 +1029,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } //select if (if_group("superadmin")) { - if (!$tmp_selected) { + if (!$tmp_selected && strlen($ivr_menu_exit_sound) > 0) { echo "\n"; if (file_exists($_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/".$ivr_menu_exit_sound)) { echo " \n";