X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgroups.inc.php;h=f07a06c98ebb7451c6f19ca38abafd4b495f96b0;hb=7f3ac125d8b532fd0fc643e3504e5bd06be01fc4;hp=26bfafd03e4ca5a56e24fc7d17e877011f8c91ef;hpb=843707811834ac764ceb05df10ddfde16e143912;p=platal.git diff --git a/modules/profile/groups.inc.php b/modules/profile/groups.inc.php index 26bfafd..f07a06c 100644 --- a/modules/profile/groups.inc.php +++ b/modules/profile/groups.inc.php @@ -1,6 +1,6 @@ settings['section'] = new ProfileSettingSection(); @@ -108,13 +108,13 @@ class ProfilePageGroups extends ProfilePage $this->watched['section'] = $this->watched['binets'] = true; } - public function _prepare(PlPage &$page, $id) + public function _prepare(PlPage $page, $id) { $page->assign('mygroups', XDB::iterator("SELECT a.nom, a.site, a.diminutif, a.unsub_url, a.pub, m.perms FROM groups AS a INNER JOIN group_members AS m ON (m.asso_id = a.id) WHERE m.uid = {?} AND (a.cat = 'GroupesX' OR a.cat = 'Institutions')", - $this->pid())); + $this->owner->id())); $page->assign('listgroups', XDB::iterator("SELECT a.nom, a.diminutif, a.sub_url, IF (a.cat = 'Institutions', a.cat, d.nom) AS dom FROM groups AS a