Improve the PlView code, adding comments.
[platal.git] / classes / xnetpage.php
index 7fdd2bb..2a63e16 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -55,6 +55,8 @@ class XnetPage extends PlPage
     {
         if (!$this->nomenu) {
             $this->useMenu();
+        } else {
+            $this->assign('menu', false);
         }
         $this->_run('xnet/skin.tpl');
     }
@@ -142,8 +144,8 @@ function list_all_my_groups($params)
         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
+                           FROM  groups    AS a
+                     INNER JOIN  group_members AS m ON m.asso_id = a.id
                           WHERE  m.uid = {?}', S::i('uid'));
     $links = '<a href="exit">déconnexion</a>';
     $html = '<div>Mes groupes (' . $links . ') :</div>';