FIX : if empty error message, we just see "error" displayed

This commit is contained in:
gauthier 2019-02-27 14:50:01 +01:00
parent 86e2ffe323
commit 49e03b009f

View File

@ -179,7 +179,8 @@ class mailing_xinputfile extends MailingTargets
{
$i++;
$langs->load("errors");
$this->error = $langs->trans("ErrorFoundBadEmailInFile",$i,$cpt,$email);
$msg = $langs->trans("ErrorFoundBadEmailInFile",$i,$cpt,$email);
if(!empty($msg)) $this->error = $msg;
}
}
}