Fixes the email addresses used to inform participants to an event that they can now...
authorVincent Zanotti <vincent.zanotti@m4x.org>
Tue, 12 May 2009 00:12:19 +0000 (02:12 +0200)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Tue, 12 May 2009 00:12:19 +0000 (02:12 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
include/validations/paiements.inc.php

index 62e264a..3c50e83 100644 (file)
@@ -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();
                 }
             }