diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 66ca7175db..b988855eb9 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -321,8 +321,12 @@ if (permission_exists('extension_accountcode')) { $array["extensions"][$i]["accountcode"] = $accountcode; } - $array["extensions"][$i]["effective_caller_id_name"] = $effective_caller_id_name; - $array["extensions"][$i]["effective_caller_id_number"] = $effective_caller_id_number; + if (permission_exists("effective_caller_id_name")) { + $array["extensions"][$i]["effective_caller_id_name"] = $effective_caller_id_name; + } + if (permission_exists("effective_caller_id_number")) { + $array["extensions"][$i]["effective_caller_id_number"] = $effective_caller_id_number; + } if (permission_exists("outbound_caller_id_name")) { $array["extensions"][$i]["outbound_caller_id_name"] = $outbound_caller_id_name; } @@ -1136,27 +1140,31 @@ } } - echo "