From: Vincent Zanotti Date: Sun, 4 Jul 2010 18:48:08 +0000 (+0200) Subject: Fixes "undefined index" notices in the xnetgrp mailer. X-Git-Tag: xorg/1.0.1~15^2~56 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=965221bf940fc9b3855e2aa0dd16088c225feedf;p=platal.git Fixes "undefined index" notices in the xnetgrp mailer. Signed-off-by: Vincent Zanotti --- diff --git a/modules/xnetgrp/mail.inc.php b/modules/xnetgrp/mail.inc.php index 891146a..a8518fb 100644 --- a/modules/xnetgrp/mail.inc.php +++ b/modules/xnetgrp/mail.inc.php @@ -100,11 +100,11 @@ function send_xnet_mails($from, $sujet, $body, $wiki, $tos, $replyto = null, $up } else { $email = $user; } - if ($sent[$email]) { - continue; + + if (!isset($sent[$email])) { + _send_xnet_mail($user, $body, $wiki, $mailer, $replyto); + $sent[$email] = true; } - _send_xnet_mail($user, $body, $wiki, $mailer, $replyto); - $sent[$email] = true; } }