Display a message when nothing is send

This commit is contained in:
Michael RICOIS 2012-11-19 16:03:12 +00:00
parent ba2661487d
commit bc22e33e5e

View File

@ -260,6 +260,10 @@ foreach ($tabCommandes as $ref => $commande){
}
ftp_close($conn_id);
if (empty($report_txt)) {
$report_txt = "Aucun envoi.";
}
//Envoi du mail de rapport
if (!$test && !$testMail){
if (mail($report_email, $report_subject, utf8_decode($report_txt))){