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:
parent
2f8b7a1a90
commit
baf95cbfa4
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,12 @@
|
||||||
- add second table in database (for domain/checkupdate/intervale cron)
|
- add second table in database (for domain/checkupdate/intervale cron)
|
||||||
- send email for advertisement action ?
|
- send email for advertisement action ?
|
||||||
|
|
||||||
|
## 1.0.1 (2014-01-06)
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
|
||||||
|
- fixe ListeAlias no send email if error
|
||||||
|
|
||||||
## 1.0 (2013-10-02)
|
## 1.0 (2013-10-02)
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
|
@ -244,10 +244,10 @@ function ListeAlias($email) {
|
||||||
$message.="\tSupprimer : ".urlGen('delete',$alias_db['id'],$alias_db['alias'])."\n\n";
|
$message.="\tSupprimer : ".urlGen('delete',$alias_db['id'],$alias_db['alias'])."\n\n";
|
||||||
}
|
}
|
||||||
$nb_alias_total = $nb_alias + $nb_alias_disable;
|
$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) {
|
if ($nb_alias_total == 0) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
SendEmail($email,'Liste de vos '.$nb_alias_total.' redirection(s) poubelle(s)',$message);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue