Properly unsubscribe from group MLs when leaving the group (Closes #806)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Jun 2008 20:14:01 +0000 (22:14 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Jun 2008 20:14:01 +0000 (22:14 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetgrp.php

index b3de66d..83bfdea 100644 (file)
@@ -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;
         }