Update email_logs.php

This commit is contained in:
FusionPBX 2022-04-17 14:16:29 -06:00 committed by GitHub
parent 8c84c9c837
commit e80a04f1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 16 deletions

View File

@ -147,16 +147,16 @@ if (!class_exists('email_logs')) {
$sql .= "where email_log_uuid = :email_log_uuid ";
$parameters['email_log_uuid'] = $uuid;
$database = new database;
$email = $database->select($sql, $parameters, 'column');
$found = $email != '' ? true : false;
$msg = $database->select($sql, $parameters, 'column');
$found = $msg != '' ? true : false;
unset($sql, $parameters, $row);
//resend email
if ($found) {
$msg = $email;
$resend = true;
require "secure/v_mailto.php";
if ($mailer_error == '') {
if ($sent) {
//build the delete array
$array[$this->table][$x][$this->uuid_prefix.'uuid'] = $uuid;
@ -180,9 +180,8 @@ if (!class_exists('email_logs')) {
}
else {
//set message
message::add($text['message-resend_failed'].": ".$mailer_error, 'negative', 4000);
message::add($text['message-resend_failed'].": ".$email->email_error, 'negative', 4000);
}
}