From cc4280b18462b451a58a945cc032d38d84e467d7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 16 Jul 2012 12:37:51 +0000 Subject: [PATCH] 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 --- phpgwapi/inc/class.accounts_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 4f6e17b747..3ad55513ea 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -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'];