Commit baf95cbf authored by David's avatar David
Browse files

fixe ListeAlias : no send email if error

parent 2f8b7a1a
......@@ -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:
......
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment