From f19109a85286e80df9731f028a73901f9d2f67cf Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Thu, 26 Oct 2017 11:26:47 +0300 Subject: [PATCH] Begin resample Sccp_manager bug ? fix ? --- Sccp_manager.class.php | 2 +- Sccp_manager.inc/extconfigs.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index 10ef52d..e3ab66d 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -1881,7 +1881,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { $lang = (empty($hwlang[1])) ? $this->sccpvalues['devlang']['data'] : $hwlang[1]; // $lang=$this->sccpvalues['devlang']['data']; } - if (!empty($lang) && $lang !='null') { + if (($lang !='null') && (!empty(trim($lang)))) { if ($key == 'networkLocale') { $xml_work->$key = $lang; } else { diff --git a/Sccp_manager.inc/extconfigs.class.php b/Sccp_manager.inc/extconfigs.class.php index 4f17c0e..9573dfd 100644 --- a/Sccp_manager.inc/extconfigs.class.php +++ b/Sccp_manager.inc/extconfigs.class.php @@ -50,7 +50,7 @@ class extconfigs { if (isset($result[$index])) { return $result[$index]; } else { - return array(''); + return array(); } } }