From 28e954f6da202711a5afc66470e4d39b9684ca97 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 31 May 2007 03:28:58 +0000 Subject: [PATCH] Fix: Il ne faut pas modifier le user de creation --- htdocs/user.class.php | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 20aa77d0a87..a11a5624da0 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -761,24 +761,8 @@ class User if ($resql) { - $sql = "UPDATE ".MAIN_DB_PREFIX."socpeople"; - $sql.= " SET fk_user_create = ".$this->id; - $sql.= " WHERE idp = ".$contact->id; - $resql=$this->db->query($sql); - - if ($resql) - { - $this->db->commit(); - return $this->id; - } - else - { - $this->error=$this->db->error()." - $sql"; - dolibarr_syslog("User::create_from_contact - 20 - ".$this->error); - - $this->db->rollback(); - return -2; - } + $this->db->commit(); + return $this->id; } else {