]> source.dussan.org Git - nextcloud-server.git/commitdiff
cleanup and coding style
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 7 Oct 2013 16:03:54 +0000 (18:03 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 17 Oct 2013 17:13:27 +0000 (19:13 +0200)
apps/user_ldap/lib/wizard.php

index a6bc4417920934092a9e661d5c10aaa08666b873..69354c6922944a028b1844fab10b9e3e83266def 100644 (file)
@@ -341,7 +341,8 @@ class Wizard extends LDAPUtility {
                $dnRead = array();
                $foundItems = array();
                $maxEntries = 0;
-               if(!is_array($this->configuration->ldapBase) || !isset($this->configuration->ldapBase[0])) {
+               if(!is_array($this->configuration->ldapBase)
+                  || !isset($this->configuration->ldapBase[0])) {
                        return false;
                }
                $base = $this->configuration->ldapBase[0];
@@ -355,7 +356,6 @@ class Wizard extends LDAPUtility {
                        }
                        $rr = $this->ldap->search($cr, $base, $filter, array($attr));
                        if(!$this->ldap->isResource($rr)) {
-                               \OCP\Util::writeLog('user_ldap', 'Search failed, Base '.$base, \OCP\Util::DEBUG);
                                continue;
                        }
                        $entries = $this->ldap->countEntries($cr, $rr);