From: Vincent Zanotti Date: Tue, 12 May 2009 00:12:19 +0000 (+0200) Subject: Fixes the email addresses used to inform participants to an event that they can now... X-Git-Tag: xorg/0.10.1~49^2~7 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e1be2d8c78cd87855834eae53bf44d97375a0f96;p=platal.git Fixes the email addresses used to inform participants to an event that they can now pay for it. Signed-off-by: Vincent Zanotti --- diff --git a/include/validations/paiements.inc.php b/include/validations/paiements.inc.php index 62e264a..3c50e83 100644 --- a/include/validations/paiements.inc.php +++ b/include/validations/paiements.inc.php @@ -201,7 +201,12 @@ Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais $mailer->assign('payment', $id); $mailer->assign('prenom', $u['prenom']); $mailer->assign('topay', $topay); - $mailer->assign('to', $u['email']); + + if (strpos($u['email'], '@') === false) { + $mailer->assign('to', $u['email'] . '@' . $globals->mail->domain); + } else { + $mailer->assign('to', $u['email']); + } $mailer->send(); } }