Commit 759f2458 authored by David's avatar David
Browse files

Erreur dans la fonction de list sur la mise en forme du mail

parent 7ca7ea15
......@@ -223,7 +223,7 @@ function ListeAlias($email) {
$nb_alias_disable=0;
$message= "## Liste de vos redirections poubelles active : \n\n";
while($alias_db = $selectcmd->fetch()) {
if ($alias_db['status'] == 3 && $nb_alias != 0) {
if ($alias_db['status'] == 3 && $nb_alias_disable == 0) {
$message.= "## Liste de vos redirections poubelles désactivé : \n\n";
}
$message.=" * ".$alias_db['alias']." Créé le ".$alias_db['dateCreat'];
......@@ -239,7 +239,7 @@ function ListeAlias($email) {
$nb_alias++;
} else {
$message.="\tActiver : ".urlGen('enable',$alias_db['id'],$alias_db['alias'])."\n";
$nb_alias++;
$nb_alias_disable++;
}
$message.="\tSupprimer : ".urlGen('delete',$alias_db['id'],$alias_db['alias'])."\n\n";
}
......
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