bugfix lors de l'insertion d'un nouveau contact dans ldap

This commit is contained in:
Rodolphe Quiedeville 2004-05-28 14:13:25 +00:00
parent 75906451ed
commit 14ba00fff2

View File

@ -40,8 +40,8 @@ class Contact
return 1; return 1;
} }
/* /**
* * Création du contact
* *
* *
*/ */
@ -59,7 +59,7 @@ class Contact
{ {
$id = $this->db->last_insert_id(); $id = $this->db->last_insert_id();
$this->update($id); $this->update($id, $user);
return $id; return $id;
} }
@ -80,6 +80,7 @@ class Contact
$this->email = trim($this->email); $this->email = trim($this->email);
$this->phone_pro = ereg_replace(" ","",$this->phone_pro); $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) if (strlen($this->phone_pro) == 0 && $this->socid > 0)
{ {