diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index 3b84c1847ed7d122f5919e1d099d0c924ce7d4b8..f7cc77f5069915b4186c69e85a41342b0cee1088 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -443,8 +443,8 @@ class Adherent $sql .= ",statut=" .$this->statut; $sql .= ",fk_adherent_type=".$this->typeid; $sql .= ",morphy=" ."'".$this->morphy."'"; - - $sql .= ",naiss=" .($this->naiss?"'".$this->naiss."'":"null"); + $birthday = (int) $this->naiss; + $sql .= ",naiss=" .($birthday?"'".$birthday."'":"null"); if ($this->datefin) $sql .= ",datefin='".$this->db->idate($this->datefin)."'"; // Ne doit etre modifi� que par effacement cotisation if ($this->datevalid) $sql .= ",datevalid='".$this->db->idate($this->datevalid)."'"; // Ne doit etre modifi� que par validation adherent