diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 49c0c03d8f..38eaf7f794 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -26,6 +26,7 @@ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; +require_once "resources/classes/logging.php"; if (permission_exists('ivr_menu_add') || permission_exists('ivr_menu_edit')) { //access granted } @@ -40,6 +41,10 @@ else { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } + $log = new Logging(); + $log->log("debug", "passed validation, line 45"); + $log->log("debug", check_str($_POST["ivr_menu_uuid"])); + //function to show the list of sound files function recur_sounds_dir($dir) { global $dir_array; @@ -658,22 +663,20 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } } - unset($sql, $result); +unset($sql, $result); - if (strlen($ivr_menu_uuid) > 0) { $options = array(0); } - if (strlen($ivr_menu_uuid) == 0) { $options = array(0,1,2,3,4); } - foreach ($options as $x) { +for ($c = 0; $c < 1; $c++) { echo "