diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 678b2e0c68..2a9c93792a 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -535,7 +535,7 @@ class infolog_so if ($args['new_owner']) { // 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". " 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', ), __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'); }