pending commit, finished during MQ/S download ...
[platal.git] / htdocs.net / groupe / getCityInfos.php
index 80d8032..eda7d7d 100644 (file)
@@ -38,7 +38,7 @@ $fields = new SFieldGroup(true, array($assoField, $cityIdField));
 $where = $fields->get_where_statement();
 if ($where) $where = "WHERE ".$where;
 
-$users = $globals->xdb->iterator("
+$users = XDB::iterator("
     SELECT u.user_id AS id, u.prenom, u.nom, u.promo
       FROM adresses AS a 
 INNER JOIN auth_user_md5 AS u ON(u.user_id = a.uid)
@@ -48,7 +48,7 @@ INNER JOIN auth_user_quick AS q ON(q.user_id = a.uid)
      GROUP BY u.user_id LIMIT 11",
         $id);
 
-if ($globals->asso('pub') == 'public' || has_perms())
+if ($globals->asso('pub') == 'public' || S::has_perms())
     $page->assign('users', $users);
 
 $page->run();