mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
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:
parent
dea7e46a2d
commit
6699e26062
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user