do not fill error with success message

This commit is contained in:
Frédéric FRANCE 2018-04-09 00:21:29 +02:00 committed by GitHub
parent 0c0f950338
commit f5b49aa93b
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