Commit c71b8642 authored by Feu's avatar Feu
Browse files

fix

parent 2297021f
......@@ -800,6 +800,10 @@ class utilisateur extends stdentity
}
$req = new requete($this->db,"SELECT id_utilisateur FROM utl_extra WHERE id_utilisateur='".mysql_real_escape_string($this->id)."'");
if ( !$this->permis_conduire )
$this->date_permis_conduire=null;
if ( $req->lines == 0 )
new insert($this->dbrw,
"utl_extra",
......@@ -809,7 +813,7 @@ class utilisateur extends stdentity
'musicien_utl'=>$this->musicien,
'taille_tshirt_utl'=>$this->taille_tshirt,
'permis_conduire_utl'=>$this->permis_conduire,
'date_permis_conduire_utl'=>is_null($this->permis_conduire)?date("Y-m-d",$this->date_permis_conduire):null,
'date_permis_conduire_utl'=>is_null($this->date_permis_conduire)?null:date("Y-m-d",$this->date_permis_conduire),
'hab_elect_utl'=>$this->hab_elect,
'afps_utl'=>$this->afps,
'sst_utl'=>$this->sst));
......@@ -821,7 +825,7 @@ class utilisateur extends stdentity
'musicien_utl'=>$this->musicien,
'taille_tshirt_utl'=>$this->taille_tshirt,
'permis_conduire_utl'=>$this->permis_conduire,
'date_permis_conduire_utl'=> (!is_null($this->permis_conduire)?date("Y-m-d",$this->date_permis_conduire):null),
'date_permis_conduire_utl'=> is_null($this->date_permis_conduire)?null:date("Y-m-d",$this->date_permis_conduire),
'hab_elect_utl'=>$this->hab_elect,
'afps_utl'=>$this->afps,
'sst_utl'=>$this->sst),
......
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