diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index ed5999037c..3c9b08812e 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -82,10 +82,10 @@ //delete the voicemail from the destionations $sqld = " delete from - v_voicemail_destinations as d + v_voicemail_destinations where - d.voicemail_destination_uuid = '".$voicemail_destination_uuid."' and - d.voicemail_uuid = '".$voicemail_uuid."'"; + voicemail_destination_uuid = '".$voicemail_destination_uuid."' and + voicemail_uuid = '".$voicemail_uuid."'"; $db->exec(check_sql($sqld)); //redirect the browser messages::add($text['message-delete']);