From 571e99b152913aa5833fa08588f001505994cfbf Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 13 Aug 2015 14:37:17 +0200 Subject: [PATCH] also don't count group members when more than 1 ldap configs are active --- settings/users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/users.php b/settings/users.php index 3d7f39aa36..d4e51900dd 100644 --- a/settings/users.php +++ b/settings/users.php @@ -42,7 +42,9 @@ $groupManager = \OC_Group::getManager(); $sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT; if (class_exists('\OCA\user_ldap\GROUP_LDAP')) { - $isLDAPUsed = $groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP'); + $isLDAPUsed = + $groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP') + || $groupManager->isBackendUsed('\OCA\user_ldap\Group_Proxy'); if ($isLDAPUsed) { // LDAP user count can be slow, so we sort by group name here $sortGroupsBy = \OC\Group\MetaData::SORT_GROUPNAME;