diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 1edb0b1d3c3c392ef828cdc6ad725c77310d3b2d..6a9a7df7b5e967bf5999b94bf2243a1b1780e7ef 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -216,9 +216,9 @@ class Contact extends CommonObject } } - if (! $error) + if (! $error) { - $result=$this->update_perso($this->id, $user); + $result=$this->update_perso($this->id, $user, 1); // TODO Remove function update_perso, should be same than update if ($result < 0) { $error++; @@ -226,7 +226,7 @@ class Contact extends CommonObject } } - if (! $error) + if (! $error) { // Call trigger $result=$this->call_trigger('CONTACT_CREATE',$user);