X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=classes%2Fxnetpage.php;h=2a63e16853ce6d43b88c2e00614196ae590eb7ca;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=d45491b0b91854be2a20b059359940933fcfe6ee;hpb=9f5bd98e936d8cef7ca9f774eeef64dbb8a1b079;p=platal.git diff --git a/classes/xnetpage.php b/classes/xnetpage.php index d45491b..2a63e16 100644 --- a/classes/xnetpage.php +++ b/classes/xnetpage.php @@ -55,6 +55,8 @@ class XnetPage extends PlPage { if (!$this->nomenu) { $this->useMenu(); + } else { + $this->assign('menu', false); } $this->_run('xnet/skin.tpl'); } @@ -90,7 +92,6 @@ class XnetPage extends PlPage if ($perms->hasFlag('groupannu')) { $sub['annuaire du groupe'] = "$dim/annuaire"; $sub['trombinoscope'] = "$dim/trombi"; - $sub['planisphère'] = "$dim/geoloc"; } if ($perms->hasFlag('groupmember')) { if ($globals->asso('forum')) { @@ -142,11 +143,10 @@ function list_all_my_groups($params) if (!S::logged()) { return; } - $res = XDB::iterRow( - "SELECT a.nom, a.diminutif - FROM #groupex#.asso AS a - INNER JOIN #groupex#.membres AS m ON m.asso_id = a.id - WHERE m.uid={?}", S::v('uid')); + $res = XDB::iterRow('SELECT a.nom, a.diminutif + FROM groups AS a + INNER JOIN group_members AS m ON m.asso_id = a.id + WHERE m.uid = {?}', S::i('uid')); $links = 'déconnexion'; $html = '