1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

fixe ListeAlias : no send email if error

This commit is contained in:
David 2014-01-06 15:29:04 +01:00
parent 2f8b7a1a90
commit baf95cbfa4
2 changed files with 7 additions and 1 deletions

View file

@ -7,6 +7,12 @@
- add second table in database (for domain/checkupdate/intervale cron)
- send email for advertisement action ?
## 1.0.1 (2014-01-06)
Bugfixes:
- fixe ListeAlias no send email if error
## 1.0 (2013-10-02)
Features:

View file

@ -244,10 +244,10 @@ function ListeAlias($email) {
$message.="\tSupprimer : ".urlGen('delete',$alias_db['id'],$alias_db['alias'])."\n\n";
}
$nb_alias_total = $nb_alias + $nb_alias_disable;
SendEmail($email,'Liste de vos '.$nb_alias_total.' redirection(s) poubelle(s)',$message);
if ($nb_alias_total == 0) {
return false;
} else {
SendEmail($email,'Liste de vos '.$nb_alias_total.' redirection(s) poubelle(s)',$message);
return true;
}
}