From: Florent Bruneau Date: Tue, 16 Oct 2007 20:32:08 +0000 (+0200) Subject: Fix count of non subscribers X-Git-Tag: xorg/0.9.15~29 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=279c433c023352618fbab795680060a5ce90dc90;p=platal.git Fix count of non subscribers Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 114b220..f6efd06 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -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 {