diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-06-15 21:48:27 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-06-15 21:48:27 +0200 |
commit | 0cf57d1ed4fb370a4411353aab0aceecc08dc5de (patch) | |
tree | ef5e7082006a8d52c79d7f28ad12392e18bc0c59 /apps | |
parent | b5cf0467cd717bb730204df489f37bb864910289 (diff) | |
download | nextcloud-server-0cf57d1ed4fb370a4411353aab0aceecc08dc5de.tar.gz nextcloud-server-0cf57d1ed4fb370a4411353aab0aceecc08dc5de.zip |
getXbyY can still return false, e.g. when using ldap write support
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Mapping/AbstractMapping.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index 6fd07f5f483..a4a3705e223 100644 --- a/apps/user_ldap/lib/Mapping/AbstractMapping.php +++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php @@ -123,8 +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)) { $this->cache[$dn] = $name; } return $dn; |