Spelling fixes
This commit is contained in:
parent
ea3a6d9fcf
commit
ded9ea5ad3
|
@ -472,14 +472,13 @@ class OC_LDAP {
|
||||||
$attr = array(strtolower($attr));
|
$attr = array(strtolower($attr));
|
||||||
}
|
}
|
||||||
|
|
||||||
// See if we have a resource, that way we can get rid of the
|
// See if we have a resource
|
||||||
// error-supressing.
|
|
||||||
$link_resource = self::getConnectionResource();
|
$link_resource = self::getConnectionResource();
|
||||||
if($link_resource)
|
if($link_resource)
|
||||||
{
|
{
|
||||||
$sr = ldap_search($link_resource, $base, $filter, $attr);
|
$sr = ldap_search($link_resource, $base, $filter, $attr);
|
||||||
$findings = ldap_get_entries($link_resource, $sr );
|
$findings = ldap_get_entries($link_resource, $sr );
|
||||||
// if we're here, probably no connection ressource is returned.
|
// if we're here, probably no connection resource is returned.
|
||||||
// to make ownCloud behave nicely, we simply give back an empty array.
|
// to make ownCloud behave nicely, we simply give back an empty array.
|
||||||
if(is_null($findings)) {
|
if(is_null($findings)) {
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Reference in New Issue