Update ivr_menu_edit.php
This commit is contained in:
parent
57d38a3225
commit
c0781ef8fa
|
|
@ -376,20 +376,20 @@
|
||||||
|
|
||||||
//add an empty row to the options array
|
//add an empty row to the options array
|
||||||
if (count($ivr_menu_options) == 0) {
|
if (count($ivr_menu_options) == 0) {
|
||||||
$count = 5;
|
$rows = $_SESSION['ivr_menu']['option_add_rows']['numeric'];
|
||||||
$x = 0;
|
$id = 0;
|
||||||
}
|
}
|
||||||
if (count($ivr_menu_options) > 0) {
|
if (count($ivr_menu_options) > 0) {
|
||||||
$count = 1;
|
$rows = $_SESSION['ivr_menu']['option_edit_rows']['numeric'];
|
||||||
$x = '';
|
$id = count($ivr_menu_options)+1;
|
||||||
}
|
}
|
||||||
while ($x < $count) {
|
for ($x = 0; $x < $rows; $x++) {
|
||||||
$ivr_menu_options[$x]['ivr_menu_option_digits'] = '';
|
$ivr_menu_options[$id]['ivr_menu_option_digits'] = '';
|
||||||
$ivr_menu_options[$x]['ivr_menu_option_action'] = '';
|
$ivr_menu_options[$id]['ivr_menu_option_action'] = '';
|
||||||
$ivr_menu_options[$x]['ivr_menu_option_param'] = '';
|
$ivr_menu_options[$id]['ivr_menu_option_param'] = '';
|
||||||
$ivr_menu_options[$x]['ivr_menu_option_order'] = '';
|
$ivr_menu_options[$id]['ivr_menu_option_order'] = '';
|
||||||
$ivr_menu_options[$x]['ivr_menu_option_description'] = '';
|
$ivr_menu_options[$id]['ivr_menu_option_description'] = '';
|
||||||
$x++;
|
$id++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the defaults
|
//set the defaults
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue