summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-10-10 15:24:10 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-10-17 19:13:28 +0200
commit7ad8319488cc35c849dba9bae15c1784acbd68d1 (patch)
tree80ce687cd006eceef535398b64216f5a03239d3f /apps/user_ldap/appinfo
parent109ddde944ae17621c4680d9c7172eb585b1626d (diff)
downloadnextcloud-server-7ad8319488cc35c849dba9bae15c1784acbd68d1.tar.gz
nextcloud-server-7ad8319488cc35c849dba9bae15c1784acbd68d1.zip
do not instantiate LDAP Proxy if there are no active configurations
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r--apps/user_ldap/appinfo/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php
index 9d6327181af..c2cd295523e 100644
--- a/apps/user_ldap/appinfo/app.php
+++ b/apps/user_ldap/appinfo/app.php
@@ -30,7 +30,7 @@ if(count($configPrefixes) === 1) {
$ldapAccess = new OCA\user_ldap\lib\Access($connector, $ldapWrapper);
$userBackend = new OCA\user_ldap\USER_LDAP($ldapAccess);
$groupBackend = new OCA\user_ldap\GROUP_LDAP($ldapAccess);
-} else {
+} else if(count($configPrefixes) > 1) {
$userBackend = new OCA\user_ldap\User_Proxy($configPrefixes, $ldapWrapper);
$groupBackend = new OCA\user_ldap\Group_Proxy($configPrefixes, $ldapWrapper);
}