From: Florent Bruneau Date: Mon, 22 Oct 2007 18:16:42 +0000 (+0200) Subject: Fix the edition of event subscription for non member X-Git-Tag: xorg/0.9.15~22 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b5d34653fa342d8cd6e1b0bfcb2bf1107793768f;p=platal.git Fix the edition of event subscription for non member Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index f6efd06..2542871 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -54,12 +54,12 @@ function get_infos($email) u.prenom, b.alias, CONCAT(b.alias, '@m4x.org') AS email, CONCAT(b.alias, '@polytechnique.org') AS email2, - m.perms='admin' AS perms, m.origine, + m.perms = 'admin' AS perms, m.origine, FIND_IN_SET('femme', u.flags) AS sexe FROM auth_user_md5 AS u INNER JOIN aliases AS a ON ( u.user_id = a.id AND a.type != 'homonyme' ) INNER JOIN aliases AS b ON ( u.user_id = b.id AND b.type = 'a_vie' ) - INNER JOIN groupex.membres AS m ON ( m.uid = u.user_id AND asso_id={?}) + LEFT JOIN groupex.membres AS m ON ( m.uid = u.user_id AND asso_id={?}) WHERE a.alias = {?} AND u.user_id < 50000", $globals->asso('id'), $mbox); return $res->fetchOneAssoc(); }