forked from extern/egroupware
* InfoLog/Admin: fix error deleting user "access to undeclared static property"
This commit is contained in:
parent
9a37539ea7
commit
b8e29501f4
@ -535,7 +535,7 @@ class infolog_so
|
|||||||
if ($args['new_owner'])
|
if ($args['new_owner'])
|
||||||
{
|
{
|
||||||
// we cant just set the new owner, as he might be already set and we have a unique index
|
// we cant just set the new owner, as he might be already set and we have a unique index
|
||||||
Api\Db::$table_aliases[$this->users_table] = $this->users_table.
|
Api\Db::$tablealiases[$this->users_table] = $this->users_table.
|
||||||
" LEFT JOIN $this->users_table new_owner ON new_owner.info_id=$this->users_table.info_id".
|
" LEFT JOIN $this->users_table new_owner ON new_owner.info_id=$this->users_table.info_id".
|
||||||
" AND new_owner.account_id=".$this->db->quote($args['new_owner'], 'int');
|
" AND new_owner.account_id=".$this->db->quote($args['new_owner'], 'int');
|
||||||
|
|
||||||
@ -546,7 +546,7 @@ class infolog_so
|
|||||||
'new_owner.account_id IS NULL',
|
'new_owner.account_id IS NULL',
|
||||||
), __LINE__, __FILE__, 'infolog');
|
), __LINE__, __FILE__, 'infolog');
|
||||||
|
|
||||||
unset(Api\Db::$table_aliases[$this->users_table]);
|
unset(Api\Db::$tablealiases[$this->users_table]);
|
||||||
}
|
}
|
||||||
$this->db->delete($this->users_table, array('account_id' => $args['account_id']), __LINE__, __FILE__, 'infolog');
|
$this->db->delete($this->users_table, array('account_id' => $args['account_id']), __LINE__, __FILE__, 'infolog');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user