Fix query in "My Groups" page.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 27 Sep 2010 14:20:48 +0000 (16:20 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 27 Sep 2010 15:26:13 +0000 (17:26 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile.php

index f85558e..f055c30 100644 (file)
@@ -607,7 +607,7 @@ class ProfileModule extends PLModule
               FROM group_members AS m
         INNER JOIN groups AS a ON(m.asso_id = a.id)
          LEFT JOIN group_events AS e ON(e.asso_id = m.asso_id AND e.archive = 0)
-             WHERE uid = {?} GROUP BY m.asso_id ORDER BY a.nom', S::i('uid'));
+             WHERE m.uid = {?} GROUP BY m.asso_id ORDER BY a.nom', S::i('uid'));
         $page->assign('assos', $req->fetchAllAssoc());
     }