From b1a22c8475f34be8d0360ccca357bdb405da345d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 20 Dec 2010 11:46:12 +0100 Subject: [PATCH] Fixes user check. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/xnetgrp/mail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xnetgrp/mail.inc.php b/modules/xnetgrp/mail.inc.php index f3ca3e9..358d957 100644 --- a/modules/xnetgrp/mail.inc.php +++ b/modules/xnetgrp/mail.inc.php @@ -95,7 +95,7 @@ function send_xnet_mails($from, $sujet, $body, $wiki, $tos, $replyto = null, $up } foreach ($tos as $user) { - if ($user instanceof $user) { + if ($user instanceof User) { $email = $user->bestEmail(); } else { $email = $user; -- 2.1.4