From 371185ce80f82a3e415ea4a5b64fc2aed407ebd3 Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Tue, 22 May 2018 03:12:15 -0400 Subject: [PATCH] Fix Voicemail DELETE FROM SQL Query [4.5] (#3061) As the other patches, the AS alias is not supported on MariaDB/MySQL and maybe other databases as well. You do not need an alias as you are just dealing with a single table. --- app/voicemails/voicemail_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index ed5999037c..8c9ebaefdb 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_destination 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']);