Fix Voicemail DELETE FROM SQL Sentence [4.4] (#3060)

Same, the AS alias is not needed, it breaks MariaDB/MySQL and maybe other databases as well. Also, the SQL sentence is just dealing with one table, so it is not needed.
This commit is contained in:
Luis Daniel Lucio Quiroz 2018-05-22 03:12:28 -04:00 committed by FusionPBX
parent 2baed9f91e
commit 02f5f567b2
1 changed files with 3 additions and 3 deletions

View File

@ -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']);