Commit 813c7a14 authored by Bate's avatar Bate
Browse files

Resoud #21 (Typo)

parent 1d8b597c
......@@ -889,13 +889,14 @@ class utilisateur extends stdentity
if ( $req->lines == 0 )
new insert($this->dbrw,
"utl_etu",
array('citation' => $this->citation,
array(
'id_utilisateur' => $this->id,
'citation' => $this->citation,
'adresse_parents' => $this->adresse_parents,
'id_ville' => $this->id_ville_parents,
'id_pays' => $this->id_pays_parents,
'tel_parents' => $this->tel_parents,
'nom_ecole_etudiant' => $this->nom_ecole_etudiant),
array('id_utilisateur' => $this->id));
'nom_ecole_etudiant' => $this->nom_ecole_etudiant));
else
new update($this->dbrw,
"utl_etu",
......@@ -911,19 +912,20 @@ class utilisateur extends stdentity
if ( $this->utbm )
{
$req = new requete($this->db,"SELECT id_utilisateur FROM utl_etu WHERE id_utilisateur='".mysql_real_escape_string($this->id)."'");
$req = new requete($this->db,"SELECT id_utilisateur FROM utl_etu_utbm WHERE id_utilisateur='".mysql_real_escape_string($this->id)."'");
if ( $req->lines == 0 )
new insert($this->dbrw,
"utl_etu_utbm",
array('semestre_utbm' => $this->semestre,
array(
'id_utilisateur' => $this->id,
'semestre_utbm' => $this->semestre,
'role_utbm' => $this->role,
'departement_utbm' => $this->departement,
'filiere_utbm' => $this->filiere,
'surnom_utbm' => (!empty($this->surnom) ? $this->surnom : null),
'promo_utbm' => $this->promo_utbm,
'date_diplome_utbm'=> ($this->date_diplome_utbm!=NULL)?date("Y-m-d H:i:s",$this->date_diplome_utbm):NULL),
array( 'id_utilisateur' => $this->id));
'date_diplome_utbm'=> ($this->date_diplome_utbm!=NULL)?date("Y-m-d H:i:s",$this->date_diplome_utbm):NULL));
else
new update($this->dbrw,
"utl_etu_utbm",
......
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