Merge pull request #14789 from bafbes/abb120144
fix:remove deleted user params
This commit is contained in:
commit
b4137392ea
@ -1038,6 +1038,14 @@ class User extends CommonObject
|
|||||||
$this->error = $this->db->lasterror();
|
$this->error = $this->db->lasterror();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove params
|
||||||
|
$sql = "DELETE FROM ".MAIN_DB_PREFIX."user_param WHERE fk_user = ".$this->id;
|
||||||
|
if (!$error && !$this->db->query($sql))
|
||||||
|
{
|
||||||
|
$error++;
|
||||||
|
$this->error = $this->db->lasterror();
|
||||||
|
}
|
||||||
|
|
||||||
// If contact, remove link
|
// If contact, remove link
|
||||||
if ($this->contact_id > 0)
|
if ($this->contact_id > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user