Update email_log_delete.php

This commit is contained in:
FusionPBX
2019-04-18 09:01:50 -06:00
committed by GitHub
parent 082170e80f
commit a144ca24de

View File

@@ -43,11 +43,11 @@
$text = $language->get();
//get posted values, if any
$email_uuid = $_REQUEST["id"];
$email_log_uuid = $_REQUEST["id"];
if ($email_uuid != '') {
$sql = "delete from v_emails ";
$sql .= "where email_uuid = '".$email_uuid."' ";
$sql = "delete from v_email_logs ";
$sql .= "where email_uuid = '".$email_log_uuid."' ";
if (permission_exists('emails_all') && $_REQUEST['showall'] == 'true') {
$sql .= "";
} else {
@@ -60,6 +60,6 @@
}
//redirect user
header("Location: emails.php");
header("Location: email_logs.php");
?>