From 965221bf940fc9b3855e2aa0dd16088c225feedf Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 4 Jul 2010 20:48:08 +0200 Subject: [PATCH] Fixes "undefined index" notices in the xnetgrp mailer. Signed-off-by: Vincent Zanotti --- modules/xnetgrp/mail.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.1.4