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