Browse Source

be more clear about the condition

Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
tags/v20.0.0beta1
blizzz 4 years ago
parent
commit
0ab6ee40de
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/user_ldap/lib/Mapping/AbstractMapping.php

+ 1
- 1
apps/user_ldap/lib/Mapping/AbstractMapping.php View File

@@ -123,7 +123,7 @@ abstract class AbstractMapping {
*/
public function getDNByName($name) {
$dn = array_search($name, $this->cache);
if ($dn === false && $dn = $this->getXbyY('ldap_dn', 'owncloud_name', $name)) {
if ($dn === false && ($dn = $this->getXbyY('ldap_dn', 'owncloud_name', $name)) !== false) {
$this->cache[$dn] = $name;
}
return $dn;

Loading…
Cancel
Save