diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 639466ca98..c917d63bd6 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -198,6 +198,11 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { unset ($prep_statement); } +//set defaults + if (strlen($voicemail_attach_file) == 0) { $voicemail_attach_file = "true"; } + if (strlen($voicemail_local_after_email) == 0) { $voicemail_local_after_email = "true"; } + if (strlen($voicemail_enabled) == 0) { $voicemail_enabled = "true"; } + //show the header require_once "includes/header.php"; @@ -266,7 +271,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "