From d7e0935037e1b2ae1a2afd9e06a5ef271f0496cd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Apr 2017 21:49:53 -0600 Subject: [PATCH] Update dialplan_edit.php --- app/dialplan/dialplan_edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index 953ac1c95e..b272e56c7c 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -239,8 +239,10 @@ unset ($prep_statement, $sql); //create a new array that is sorted into groups and put the tags in order conditions, actions, anti-actions - $x = 0; - $details = ''; + //set the array index + $x = 0; + //define the array + $details = array(); //conditions if (is_array($result)) foreach($result as $row) { if ($row['dialplan_detail_tag'] == "condition") {