Fix contact

This commit is contained in:
Laurent Destailleur 2021-06-14 14:15:32 +02:00
parent 5cc86d2319
commit f988f4c352

View File

@ -461,7 +461,7 @@ class Contact extends CommonObject
}
$sql .= "'".$this->db->escape($this->lastname)."',";
$sql .= "'".$this->db->escape($this->firstname)."',";
$sql .= " ".($user->id > 0 ? ((int) $user->id)."'" : "null").",";
$sql .= " ".($user->id > 0 ? ((int) $user->id) : "null").",";
$sql .= " ".((int) $this->priv).",";
$sql .= " 0,";
$sql .= " ".((int) $this->statut).",";