Update for compatibility with PHP 7.4
PHP 7.4 gives warnings that are handled as exceptions
This commit is contained in:
parent
031ef0087e
commit
90729f74aa
|
@ -217,6 +217,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
|
||||
public function getDefaultDeviceSettings($id, $displayname, &$flag) {
|
||||
// FreePBX required method
|
||||
$settings = array();
|
||||
$settingsFields = array('mailbox', 'incominglimit', 'context', 'directed_pickup_context', 'callgroup', 'pickupgroup', 'namedcallgroup',
|
||||
'namedpickupgroup', 'adhocNumber', 'secondary_dialtone_digits', 'secondary_dialtone_tone', 'directed_pickup', 'pickup_modeanswer',
|
||||
'transfer', 'echocancel', 'dnd', 'silencesuppression', 'musicclass', 'pin', 'allow', 'disallow');
|
||||
|
|
|
@ -46,7 +46,7 @@ if (!empty($_REQUEST['id'])) {
|
|||
$def_val[$key] = array('keyword' => $key, 'data' => $val, 'seq' => 99);
|
||||
}
|
||||
// Do not store value and let defaults apply
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
$def_val[$key] = array("keyword" => $key, "data" => $val, "seq" => "99");
|
||||
// Need to assign defaultLine as not set in the db.
|
||||
|
|
Loading…
Reference in a new issue