Voicemail Greeting - Edit: Mitigate PHP warning on add.

This commit is contained in:
fusionate
2026-01-27 18:57:11 -07:00
parent f294d7c836
commit 6a8609ae25

View File

@@ -312,7 +312,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
if (permission_exists('voicemail_greeting_delete') && $action == 'update') {
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'name'=>'btn_delete','collapse'=>'hide-xs','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
}
if (permission_exists('voicemail_greeting_play') && !empty($voicemail_greeting_uuid) && is_uuid($voicemail_greeting_uuid)) {
if (permission_exists('voicemail_greeting_play') && $action == 'update') {
$greeting_file_name = strtolower(pathinfo($greeting_filename, PATHINFO_BASENAME));
$greeting_file_ext = pathinfo($greeting_file_name, PATHINFO_EXTENSION);
switch ($greeting_file_ext) {