]> source.dussan.org Git - nextcloud-server.git/commitdiff
do not instantiate LDAP Proxy if there are no active configurations
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 10 Oct 2013 13:24:10 +0000 (15:24 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 17 Oct 2013 17:13:28 +0000 (19:13 +0200)
apps/user_ldap/appinfo/app.php

index 9d6327181afb3b67181eac2afa88267ad6789399..c2cd295523eaf309190996c7879705f1df085398 100644 (file)
@@ -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);
 }