Fix: Il ne faut pas modifier le user de creation

This commit is contained in:
Laurent Destailleur 2007-05-31 03:28:58 +00:00
parent adb3461bc6
commit 28e954f6da

View File

@ -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
{