aboutsummaryrefslogtreecommitdiffstats
path: root/settings/users.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-07 10:28:08 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-07 10:28:08 +0100
commitc97147c99a894f81135b1df29e8c0d86bb4f1cc3 (patch)
treea0bddcde424bca97e449b499d10dfec9711ecf65 /settings/users.php
parent4c5afe85da36aa170d12a0ff66bf6be08757a6f1 (diff)
downloadnextcloud-server-c97147c99a894f81135b1df29e8c0d86bb4f1cc3.tar.gz
nextcloud-server-c97147c99a894f81135b1df29e8c0d86bb4f1cc3.zip
Check if app is enabled instead of if class exists
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php
index d4e51900ddd..843995a57f9 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -41,7 +41,7 @@ $groupManager = \OC_Group::getManager();
// Set the sort option: SORT_USERCOUNT or SORT_GROUPNAME
$sortGroupsBy = \OC\Group\MetaData::SORT_USERCOUNT;
-if (class_exists('\OCA\user_ldap\GROUP_LDAP')) {
+if (\OC_App::isEnabled('user_ldap')) {
$isLDAPUsed =
$groupManager->isBackendUsed('\OCA\user_ldap\GROUP_LDAP')
|| $groupManager->isBackendUsed('\OCA\user_ldap\Group_Proxy');