Merge pull request #8524 from frederic34/patch-10

FIX do not fill error with success message when using SwiftMailer
This commit is contained in:
Laurent Destailleur 2018-04-11 13:19:04 +02:00 committed by GitHub
commit f54113b1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -775,9 +775,6 @@ class CMailFile
if (! empty($this->error) || ! $result) {
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
$res=false;
} else {
$this->error = $langs->trans("SentXXXmessages", $result);
$this->errors[] = $langs->trans("SentXXXmessages", $result);
}
}
else