From df5d9798ccd099913a47f6aa9cdb0b044d9a8fb9 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Wed, 27 Dec 2017 16:25:12 +0300 Subject: [PATCH] Fixed bug --- Sccp_manager.inc/xmlinterface.class.php | 5 +++++ conf/SEP0000000000.cnf.xml_791x_template | 2 +- conf/SEP0000000000.cnf.xml_7940_template | 2 +- conf/SEP0000000000.cnf.xml_796x_template | 2 +- conf/SEP0000000000.cnf.xml_79df_template | 2 +- conf/SEP0000000000.cnf.xml_ATA_template | 2 +- conf/sccpgeneral.xml.v431 | 4 ++-- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Sccp_manager.inc/xmlinterface.class.php b/Sccp_manager.inc/xmlinterface.class.php index 9131e58..2fab683 100644 --- a/Sccp_manager.inc/xmlinterface.class.php +++ b/Sccp_manager.inc/xmlinterface.class.php @@ -73,7 +73,12 @@ class xmlinterface { foreach ($def_xml_fields as $value) { if (!empty($data_values['dev_' . $value])) { $xml_work->$value = trim($data_values['dev_' . $value]); + } else { +// $xml_work->$value = ''; + $node = $xml_work->$value; + unset($node[0][0]); } + } foreach ($def_xml_locale as $key) { if (!empty($xml_work->$key)) { diff --git a/conf/SEP0000000000.cnf.xml_791x_template b/conf/SEP0000000000.cnf.xml_791x_template index 1401365..22f5ee4 100644 --- a/conf/SEP0000000000.cnf.xml_791x_template +++ b/conf/SEP0000000000.cnf.xml_791x_template @@ -65,7 +65,7 @@ 64 4.0(1) - 1 + 0 3600 http://x.x.x.x/cisco_menu/authentication.php http://x.x.x.x/cisco_menu/idle.php diff --git a/conf/SEP0000000000.cnf.xml_7940_template b/conf/SEP0000000000.cnf.xml_7940_template index b0cda34..e3ee035 100644 --- a/conf/SEP0000000000.cnf.xml_7940_template +++ b/conf/SEP0000000000.cnf.xml_7940_template @@ -67,7 +67,7 @@ 64 4.0(1) - 1 + 0 3600 http://x.x.x.x/cisco_menu/authentication.php http://x.x.x.x/cisco_menu/idle.php diff --git a/conf/SEP0000000000.cnf.xml_796x_template b/conf/SEP0000000000.cnf.xml_796x_template index f72460b..02032aa 100644 --- a/conf/SEP0000000000.cnf.xml_796x_template +++ b/conf/SEP0000000000.cnf.xml_796x_template @@ -67,7 +67,7 @@ 64 4.0(1) - 1 + 0 3600 http://x.x.x.x/cisco_menu/authentication.php http://x.x.x.x/cisco_menu/idle.php diff --git a/conf/SEP0000000000.cnf.xml_79df_template b/conf/SEP0000000000.cnf.xml_79df_template index 1401365..22f5ee4 100644 --- a/conf/SEP0000000000.cnf.xml_79df_template +++ b/conf/SEP0000000000.cnf.xml_79df_template @@ -65,7 +65,7 @@ 64 4.0(1) - 1 + 0 3600 http://x.x.x.x/cisco_menu/authentication.php http://x.x.x.x/cisco_menu/idle.php diff --git a/conf/SEP0000000000.cnf.xml_ATA_template b/conf/SEP0000000000.cnf.xml_ATA_template index 1401365..22f5ee4 100644 --- a/conf/SEP0000000000.cnf.xml_ATA_template +++ b/conf/SEP0000000000.cnf.xml_ATA_template @@ -65,7 +65,7 @@ 64 4.0(1) - 1 + 0 3600 http://x.x.x.x/cisco_menu/authentication.php http://x.x.x.x/cisco_menu/idle.php diff --git a/conf/sccpgeneral.xml.v431 b/conf/sccpgeneral.xml.v431 index f7104bf..03eb9ba 100644 --- a/conf/sccpgeneral.xml.v431 +++ b/conf/sccpgeneral.xml.v431 @@ -840,8 +840,8 @@ and open the template in the editor. Base Version before all crash :-) createlangdir off - - + + Say 'yes' if you need to create cisco default language directory in tftp path.