Fix: bug envoi mail sur validation fiche adhérent

This commit is contained in:
Laurent Destailleur 2006-11-11 01:26:25 +00:00
parent aea03883dd
commit f60e0c708a

View File

@ -333,13 +333,13 @@ if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == 'yes')
$adht = new AdherentType($db); $adht = new AdherentType($db);
$adht->fetch($adh->typeid); $adht->fetch($adh->typeid);
if (isset($adht->mail_valid) && $adht->mail_valid != '') if (isset($adht->mail_valid) && $adht->mail_valid)
{ {
$result=$adh->send_an_email($adh->email,$adht->mail_valid,$conf->adherent->email_valid_subject); $result=$adh->send_an_email($adh->email,$adht->mail_valid,$conf->adherent->email_valid_subject);
} }
else else
{ {
$result=$adh->send_an_email($adh->email,$conf->adherent->email_valid,$conf->adherent->email_valid_subject); $result=$adh->send_an_email($adh->email,$conf->global->ADHERENT_MAIL_VALID,$conf->global->ADHERENT_MAIL_VALID_SUBJECT);
} }
// rajoute l'utilisateur dans les divers abonnements .. // rajoute l'utilisateur dans les divers abonnements ..