From e1be2d8c78cd87855834eae53bf44d97375a0f96 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Tue, 12 May 2009 02:12:19 +0200 Subject: [PATCH] Fixes the email addresses used to inform participants to an event that they can now pay for it. Signed-off-by: Vincent Zanotti --- include/validations/paiements.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } } -- 2.1.4