diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-06-16 10:55:51 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-06-19 18:03:07 +0000 |
commit | 8e02367453555d300a12fc9f55c9636dd8e28732 (patch) | |
tree | 6468815abf9bcd431b9f8da07ad3a7189b667cfe /apps/user_ldap/lib | |
parent | 6f49974851b035736df78ecc5efed3bd162127ae (diff) | |
download | nextcloud-server-8e02367453555d300a12fc9f55c9636dd8e28732.tar.gz nextcloud-server-8e02367453555d300a12fc9f55c9636dd8e28732.zip |
be more clear about the condition
Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
Diffstat (limited to 'apps/user_ldap/lib')
-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; |