diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-06-16 10:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 10:55:51 +0200 |
commit | 0ab6ee40de6107c9f660305ee49d5b11044d5266 (patch) | |
tree | e79bc3f1012469793c9a8d0c367f2169db9e27b9 /apps/user_ldap | |
parent | 0cf57d1ed4fb370a4411353aab0aceecc08dc5de (diff) | |
download | nextcloud-server-0ab6ee40de6107c9f660305ee49d5b11044d5266.tar.gz nextcloud-server-0ab6ee40de6107c9f660305ee49d5b11044d5266.zip |
be more clear about the condition
Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index a4a3705e223..0daa4f1504c 100644 --- a/apps/user_ldap/lib/Mapping/AbstractMapping.php +++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php @@ -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; |