From f855b99bb7acf63f3e675b3780a9df17990a51ac Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Fri, 15 Nov 2019 10:39:57 +0300 Subject: [PATCH] - Fix not Bug --- Sccp_manager.class.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index b1bf9a3..3f1ccb4 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -1209,11 +1209,14 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { case 'allow': $i = 0; - foreach ($get_settings['voicecodecs'] as $keycodeс => $valcodeс) { - $save_codec[$i] = $keycodeс; - $i++; - }; - $value = implode(";", $save_codec); + if (!empty($get_settings['voicecodecs'])) { + foreach ($get_settings['voicecodecs'] as $keycodeс => $valcodeс) { + $save_codec[$i] = $keycodeс; + $i++; + }; + $value = implode(";", $save_codec); + } else $value = 'all'; // Bug If not System Codecs +// } else $value = 'alaw;ulaw'; // Bug If not System Codecs break; case 'phonecodepage': $value = 'null';