From 9c645dc0b01effbeadb250c623404f5e6e2968bd Mon Sep 17 00:00:00 2001
From: ywarnier <ywarnier>
Date: Tue, 16 Jan 2007 11:22:58 +0000
Subject: [PATCH] ajout filtre date naissance

---
 htdocs/adherents/adherent.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php
index 3b84c1847ed..f7cc77f5069 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
 
-- 
GitLab