mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:28:53 +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
6b06546565
commit
cc4280b184
@ -280,8 +280,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