1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Fixes #5020 Error message removal.

This commit is contained in:
camer0n 2023-06-22 09:49:32 -07:00
parent 4cc9d8b085
commit 7d8c6ad073

View File

@ -1330,6 +1330,11 @@ class e107Email extends PHPMailer
if ( strlen($directory) > 1 && substr($directory,-1) != '/' && substr($directory,-1) != '\\') { $directory .= '/'; }
//echo "Add image: {$basedir}|{$directory}|{$filename}<br />";
if(empty($basedir.$directory.$filename))
{
continue;
}
try
{
$this->addEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType);
@ -1338,6 +1343,7 @@ class e107Email extends PHPMailer
catch (Exception $e)
{
$this->logLine($e->getMessage());
if ($this->debug)
{
echo "Add embedded image {$url} failed<br />";