From 0fcdca1db714d1d241e54549c2d5734ef6adda9a Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 19 Mar 2016 19:59:52 -0600 Subject: [PATCH] Correct the syntax for the app destinations array. --- app/ivr_menus/app_config.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/ivr_menus/app_config.php b/app/ivr_menus/app_config.php index 467f2a923d..6d325cfef6 100644 --- a/app/ivr_menus/app_config.php +++ b/app/ivr_menus/app_config.php @@ -34,15 +34,15 @@ $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${name}"; if ($_SESSION['ivr menu']['application']['text'] != "lua") { $y++; - $this->destinations[$x]['type'] = 'array'; - //$this->destinations[$x]['label'] = 'ivr_menus'; - $this->destinations[$x]['result']['data'][$y]['label'] = 'menu-top'; - $this->destinations[$x]['result']['data'][$y]['name'] = 'menu-top:'; - $this->destinations[$x]['result']['data'][$y]['destination'] = 'menu-top'; + $apps[$x]['destinations'][$x]['type'] = 'array'; + //$apps[$x]['destinations'][$x]['label'] = 'ivr_menus'; + $apps[$x]['destinations'][$y]['label'] = 'menu-top'; + $apps[$x]['destinations'][$y]['name'] = 'menu-top:'; + $apps[$x]['destinations'][$y]['destination'] = 'menu-top'; $y++; - $this->destinations[$x]['result']['data'][$y]['label'] = 'menu-exit'; - $this->destinations[$x]['result']['data'][$y]['name'] = 'menu-exit'; - $this->destinations[$x]['result']['data'][$y]['destination'] = 'menu-exit'; + $apps[$x]['destinations'][$y]['label'] = 'menu-exit'; + $apps[$x]['destinations'][$y]['name'] = 'menu-exit'; + $apps[$x]['destinations'][$y]['destination'] = 'menu-exit'; $y++; $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "sub_ivr_menus";