accounts_sql::members() use single sql query with join to acl table instead calling id2name for each account, as it is quicker and uses less memory

This commit is contained in:
Ralf Becker 2012-07-16 12:36:53 +00:00
parent dea7e46a2d
commit 6699e26062

View File

@ -281,8 +281,8 @@ class accounts_sql
$this->db->expression(acl::TABLE, array(
'acl_appname' => 'phpgw_group',
'acl_location' => $account_id,
)), __LINE__, __FILE__, false,
'JOIN '.acl::TABLE.' ON account_id=acl_owner'
)), __LINE__, __FILE__, false, '', false, 0,
'JOIN '.acl::TABLE.' ON account_id=acl_account'
) as $row)
{
$members[$row['account_id']] = $row['account_lid'];