diff --git a/app/ivr_menus/ivr_menu_edit.php b/app/ivr_menus/ivr_menu_edit.php index 437b64a03a..2ddb9fa729 100644 --- a/app/ivr_menus/ivr_menu_edit.php +++ b/app/ivr_menus/ivr_menu_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -111,10 +111,8 @@ if (permission_exists('ivr_menu_context')) { $ivr_menu_context = check_str($_POST["ivr_menu_context"]); } - else { - if ($action == 'add') { - $ivr_menu_context = $_SESSION['domain_name']; - } + elseif ($action == 'add') { + $ivr_menu_context = $_SESSION['domain_name']; } //process the values @@ -387,10 +385,10 @@ $ivr_menu_context = $row["ivr_menu_context"]; $ivr_menu_enabled = $row["ivr_menu_enabled"]; $ivr_menu_description = $row["ivr_menu_description"]; - + //replace the dash with a space $ivr_menu_name = str_replace("-", " ", $ivr_menu_name); - + if (strlen($ivr_menu_exit_app) > 0) { $ivr_menu_exit_action = $ivr_menu_exit_app.":".$ivr_menu_exit_data; }