From 3123a8f02ea2e0f80c6dc9eb10dd2b16076a70b7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Apr 2017 22:13:18 -0600 Subject: [PATCH] Update switch.php --- resources/switch.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index 9341ad34b2..1eadb5cac0 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2015 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -25,8 +25,10 @@ Luis Daniel Lucio Quiroz Riccardo Granchi */ -require_once "root.php"; -require_once "resources/require.php"; + +//includes + require_once "root.php"; + require_once "resources/require.php"; //get the event socket information if (file_exists($_SERVER["PROJECT_ROOT"]."/app/settings/app_config.php")) { @@ -755,7 +757,7 @@ function save_dialplan_xml() { unset ($prep_statement_2, $sql); //create a new array that is sorted into groups and put the tags in order conditions, actions, anti-actions - $details = ''; + $details = array(); $previous_tag = ''; $details[$group]['condition_count'] = ''; //conditions