Browse Source

Check if app is enabled instead of if class exists

tags/v8.2beta1
Robin McCorkell 8 years ago
parent
commit
c97147c99a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      settings/users.php

+ 1
- 1
settings/users.php View File

@@ -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');

Loading…
Cancel
Save