From c3b815fc2da1dc082ee683b7c53f7fcea2ea6a77 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 22 Oct 2019 20:56:34 -0600 Subject: [PATCH] Update dialplan.php --- app/dialplans/resources/classes/dialplan.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/dialplans/resources/classes/dialplan.php b/app/dialplans/resources/classes/dialplan.php index f74b6de81e..eb033b6a72 100644 --- a/app/dialplans/resources/classes/dialplan.php +++ b/app/dialplans/resources/classes/dialplan.php @@ -403,18 +403,26 @@ include "root.php"; } } } + else { + $condition_self_closing_tag = true; + } + + //if not a self closing tag then increment the group + if (!$condition_self_closing_tag) { + $group++; + } //increment the values $order = $order + 5; - $group = $group + 5; + + //increase the row number + $x++; } } //update the session array $_SESSION['upgrade']['app_defaults']['dialplans'][$domain['domain_name']][]['dialplan_name'] = $dialplan_name; - //increase the row number - $x++; } //app_uuid exists } //end foreach $xml_list