From 14ba00fff28f202acabc18529b8dcf1ee12c9e87 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 28 May 2004 14:13:25 +0000 Subject: [PATCH] bugfix lors de l'insertion d'un nouveau contact dans ldap --- htdocs/contact.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index 7465c97a339..b5d8ca35990 100644 --- a/htdocs/contact.class.php +++ b/htdocs/contact.class.php @@ -40,8 +40,8 @@ class Contact return 1; } - /* - * + /** + * Création du contact * * */ @@ -59,7 +59,7 @@ class Contact { $id = $this->db->last_insert_id(); - $this->update($id); + $this->update($id, $user); return $id; } @@ -80,6 +80,7 @@ class Contact $this->email = trim($this->email); $this->phone_pro = ereg_replace(" ","",$this->phone_pro); + $this->phone_perso = ereg_replace(" ","",$this->phone_perso); if (strlen($this->phone_pro) == 0 && $this->socid > 0) {