Fix count of non subscribers
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 16 Oct 2007 20:32:08 +0000 (22:32 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 16 Oct 2007 20:32:08 +0000 (22:32 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetgrp.php

index 78df9a9..12f86c9 100644 (file)
@@ -361,7 +361,7 @@ class XnetGrpModule extends PLModule
                                      1, 1)) as letter, COUNT(*)
                            FROM  groupex.membres AS m
                       LEFT JOIN  auth_user_md5   AS u ON ( u.user_id = m.uid)
-                          WHERE  asso_id = {?} and (u.perms != \'pending\' OR u.perms IS NULL)
+                          WHERE  asso_id = {?} and (u.perms != \'pending\' OR m.email IS NOT NULL)
                        GROUP BY  letter
                        ORDER BY  letter', $globals->asso('id'));
         } else {