From: Vincent Zanotti Date: Sun, 18 May 2008 11:30:27 +0000 (+0200) Subject: Fixes sending of homonyms emails (previously, emails for "pre-robot" and "robot"... X-Git-Tag: core/1.0.0~191 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=361a5c1587c58b0e636eb1a31f451b5ffee93f95;p=platal.git Fixes sending of homonyms emails (previously, emails for "pre-robot" and "robot" warnings were not sent). Signed-off-by: Vincent Zanotti --- diff --git a/include/homonymes.inc.php b/include/homonymes.inc.php index 52060e2..13a3076 100644 --- a/include/homonymes.inc.php +++ b/include/homonymes.inc.php @@ -29,6 +29,7 @@ function select_if_homonyme($uid) { } function send_warning_homonyme($prenom, $nom, $forlife, $loginbis) { + global $globals; $cc = "support+homonyme@" . $globals->mail->domain; $FROM = "\"Support Polytechnique.org\" <$cc>"; $mymail = new PlMailer(); @@ -41,6 +42,7 @@ function send_warning_homonyme($prenom, $nom, $forlife, $loginbis) { } function send_robot_homonyme($prenom, $nom, $forlife, $loginbis) { + global $globals; $cc = "support+homonyme@" . $globals->mail->domain; $FROM = "\"Support Polytechnique.org\" <$cc>"; $mymail = new PlMailer();