From: Florent Bruneau Date: Wed, 4 Jun 2008 20:14:01 +0000 (+0200) Subject: Properly unsubscribe from group MLs when leaving the group (Closes #806) X-Git-Tag: core/1.0.0~148 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=52ab632b222796c92849b5a29c2f56e3ee25e65d;p=platal.git Properly unsubscribe from group MLs when leaving the group (Closes #806) Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index b3de66d..83bfdea 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -774,7 +774,7 @@ class XnetGrpModule extends PLModule $user_same_email = get_infos($user['email']); $domain = $globals->asso('mail_domain'); - if (!$domain || !empty($user_same_email)) { + if (!$domain || (!empty($user_same_email) && $user_same_email['uid'] != $user['uid'])) { return true; }