diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index c89e5ab7d8..c6b9eb91e0 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -144,6 +144,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($greeting_id) > 0) { $sql .= "greeting_id = '$greeting_id', "; } + else { + $sql .= "greeting_id = null, "; + } $sql .= "voicemail_mail_to = '$voicemail_mail_to', "; $sql .= "voicemail_attach_file = '$voicemail_attach_file', "; $sql .= "voicemail_local_after_email = '$voicemail_local_after_email', ";