Display a message when nothing is send
This commit is contained in:
parent
ba2661487d
commit
bc22e33e5e
@ -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))){
|
||||
|
Loading…
Reference in New Issue
Block a user