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:
parent
4cc9d8b085
commit
7d8c6ad073
@ -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 />";
|
||||
|
Loading…
x
Reference in New Issue
Block a user