From 45b19f67837d15a9e5cf762acdb29d0ef3fdb5ea Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 28 May 2004 15:09:02 +0000 Subject: [PATCH] Modif gestion des dates dans fetch pour l'anniversaire --- htdocs/contact.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index 31fc1a805aa..4afc1b73955 100644 --- a/htdocs/contact.class.php +++ b/htdocs/contact.class.php @@ -213,7 +213,7 @@ class Contact { $sql = "UPDATE llx_socpeople SET "; - $sql .= " birthday='".$this->db->idate($this->birthday)."'"; + $sql .= " birthday='".$this->birthday)."'"; $sql .= " WHERE idp=$id"; $result = $this->db->query($sql); @@ -233,7 +233,7 @@ class Contact */ Function fetch($id, $user=0) { - $sql = "SELECT c.idp, c.fk_soc, c.name, c.firstname, c.email, phone, phone_perso, phone_mobile, jabberid, ".$this->db->pdate('c.birthday') ." as birthday, c.note, poste"; + $sql = "SELECT c.idp, c.fk_soc, c.name, c.firstname, c.email, phone, phone_perso, phone_mobile, jabberid, c.birthday, c.birthday_alert, c.note, poste"; $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as c"; $sql .= " WHERE c.idp = $id"; @@ -265,7 +265,7 @@ class Contact $this->mail = $obj->email; $this->birthday = $obj->birthday; - $this->birthday_alert = ""; + $this->birthday_alert = $obj->birthday_alert; $this->note = $obj->note; } $this->db->free();