Update email_logs.php

This commit is contained in:
FusionPBX 2019-04-20 09:31:11 -06:00 committed by GitHub
parent 186a26d556
commit 2d45f12b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
$msg_found = false;
if ($email_uuid != '') {
if ($email_log_uuid != '') {
$sql = "select call_uuid, email from v_email_logs ";
$sql .= "where email_log_uuid = '".$email_log_uuid."' ";
$sql .= "and domain_uuid = '".$domain_uuid."' ";
@ -79,7 +79,7 @@
$msg_found = false;
if ($email_uuid != '') {
if ($email_log_uuid != '') {
$sql = "select email from v_email_logs ";
$sql .= "where email_log_uuid = '".$email_log_uuid."' ";
if (!permission_exists('email_log_all') || $_REQUEST['showall'] != 'true') {
@ -104,9 +104,9 @@
if ($mailer_error == '') {
message::add($text['message-message_resent']);
if (permission_exists('email_log_all') && $_REQUEST['showall'] == 'true') {
header("Location: email_log_delete.php?id=".$email_uuid."&showall=true");
header("Location: email_log_delete.php?id=".$email_log_uuid."&showall=true");
} else {
header("Location: email_log_delete.php?id=".$email_uuid);
header("Location: email_log_delete.php?id=".$email_log_uuid);
}
}
else {