Commit ef41f996 authored by mbriand's avatar mbriand
Browse files

bleh

parent 8ef9fff9
...@@ -163,8 +163,8 @@ class utilisateur extends stdentity ...@@ -163,8 +163,8 @@ class utilisateur extends stdentity
function load_all_by_id ( $id ) function load_all_by_id ( $id )
{ {
$req = new requete($this->db, $req = new requete($this->db,
"SELECT `utl_etu`.*, `utl_etu_utbm`.*, `utl_extra`.*, `utilisateurs`.* ". "SELECT `utl_etu`.*, `utl_etu_utbm`.*, `utl_extra`.*, `utilisateurs`.*, ".
"`utl_etu`.`id_ville` AS `id_ville_parent` ". "`utl_etu`.`id_ville` AS `id_ville_parent`, ".
"`utl_etu`.`id_pays` AS `id_pays_parent` ". "`utl_etu`.`id_pays` AS `id_pays_parent` ".
"FROM utilisateurs ". "FROM utilisateurs ".
"LEFT JOIN `utl_etu` ON (`utilisateurs`.`id_utilisateur`=`utl_etu`.`id_utilisateur`) ". "LEFT JOIN `utl_etu` ON (`utilisateurs`.`id_utilisateur`=`utl_etu`.`id_utilisateur`) ".
......
...@@ -18,7 +18,7 @@ echo "--------\n"; ...@@ -18,7 +18,7 @@ echo "--------\n";
$user = new utilisateur($site->db,$site->dbrw); $user = new utilisateur($site->db,$site->dbrw);
$user->load_by_id($_REQUEST["id_utilisateur"]); $user->load_by_id($_REQUEST["id_utilisateur"]);
$user->load_all_extras(); $user->load_all_extra();
echo $user->id."\n"; echo $user->id."\n";
echo $user->id_ville."\n"; echo $user->id_ville."\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment