cleanup and coding style
This commit is contained in:
parent
87bd5a2bbb
commit
e87b091536
|
@ -341,7 +341,8 @@ class Wizard extends LDAPUtility {
|
||||||
$dnRead = array();
|
$dnRead = array();
|
||||||
$foundItems = array();
|
$foundItems = array();
|
||||||
$maxEntries = 0;
|
$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;
|
return false;
|
||||||
}
|
}
|
||||||
$base = $this->configuration->ldapBase[0];
|
$base = $this->configuration->ldapBase[0];
|
||||||
|
@ -355,7 +356,6 @@ class Wizard extends LDAPUtility {
|
||||||
}
|
}
|
||||||
$rr = $this->ldap->search($cr, $base, $filter, array($attr));
|
$rr = $this->ldap->search($cr, $base, $filter, array($attr));
|
||||||
if(!$this->ldap->isResource($rr)) {
|
if(!$this->ldap->isResource($rr)) {
|
||||||
\OCP\Util::writeLog('user_ldap', 'Search failed, Base '.$base, \OCP\Util::DEBUG);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$entries = $this->ldap->countEntries($cr, $rr);
|
$entries = $this->ldap->countEntries($cr, $rr);
|
||||||
|
|
Loading…
Reference in New Issue