From 227cd5d854a29bd84e5fa73d5e3669ad91a3aa8f Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 3 Feb 2016 10:28:12 +0300 Subject: [PATCH] Fix. Save instead of empty value path to recordings for some sound options. --- app/ivr_menus/ivr_menu_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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";