Skip to content

Commit

Permalink
Fixes #5020 Error message removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jun 22, 2023
1 parent 4cc9d8b commit 7d8c6ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e107_handlers/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,11 @@ public function MsgHTML($message, $basedir = '', $advanced = false)
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);
Expand All @@ -1338,6 +1343,7 @@ public function MsgHTML($message, $basedir = '', $advanced = false)
catch (Exception $e)
{
$this->logLine($e->getMessage());

if ($this->debug)
{
echo "Add embedded image {$url} failed<br />";
Expand Down

0 comments on commit 7d8c6ad

Please sign in to comment.