From cd8e33a06377d58dee3be010339cf72ecf3937a1 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Thu, 3 May 2018 17:56:55 +0300 Subject: [PATCH] Bug Fix --- README.md | 2 +- Sccp_manager.inc/extconfigs.class.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa3debf..47822de 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ SS SS GG G UU UU II ### Hot Link [![Download Sccp-Mamager](https://img.shields.io/badge/SccpGUI-build-ff69b4.svg)](https://github.com/PhantomVl/sccp_manager/archive/master.zip) -[![Download Chan-SCCP channel driver for Asterisk] (https://img.shields.io/sourceforge/dt/chan-sccp-b.svg)](https://github.com/chan-sccp/chan-sccp/releases/latest) +[![Download Chan-SCCP channel driver for Asterisk](https://img.shields.io/sourceforge/dt/chan-sccp-b.svg)](https://github.com/chan-sccp/chan-sccp/releases/latest) [![Chan-SCCP Documentation] (https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chan-sccp/chan-sccp/wiki) This module has been developed to help IT Staff with their Asterisk-Cisco infrastructure deployment, diff --git a/Sccp_manager.inc/extconfigs.class.php b/Sccp_manager.inc/extconfigs.class.php index ba13b07..8b1a546 100644 --- a/Sccp_manager.inc/extconfigs.class.php +++ b/Sccp_manager.inc/extconfigs.class.php @@ -219,7 +219,7 @@ class extconfigs { $adv_config = Array('tftproot' => '', 'firmware' => 'firmware', 'settings' => 'settings', 'locales' => 'locales', 'languages' => 'languages', 'templates' => 'templates'); $adv_tree['pro'] = Array('templates' => 'tftproot', 'settings' => 'tftproot', 'locales' => 'tftproot', 'firmware' => 'tftproot', 'languages' => 'locales'); - $adv_tree['def'] = Array('templates' => 'tftproot', 'settings' => 'tftproot', 'locales' => 'tftproot', 'firmware' => 'tftproot', 'languages' => 'tftproot'); + $adv_tree['def'] = Array('templates' => 'tftproot', 'settings' => '', 'locales' => '', 'firmware' => '', 'languages' => ''); //* **************------ **** $base_tree = Array('tftp_templates' => 'templates', 'tftp_path_store' => 'settings', 'tftp_lang_path' => 'languages', 'tftp_firmware_path'=>'firmware'); @@ -269,8 +269,12 @@ class extconfigs { } foreach ($adv_tree[$adv_tree_mode] as $key => $value) { if (!empty($adv_config[$key])) { - if (substr($adv_config[$key],0,1) != "/") { - $adv_config[$key] = $adv_config[$value].'/'.$adv_config[$key]; + if (!empty($value)) { + if (substr($adv_config[$key],0,1) != "/") { + $adv_config[$key] = $adv_config[$value].'/'.$adv_config[$key]; + } + } else { + $adv_config[$key] = $adv_config['tftproot']; } } }