From 8e02367453555d300a12fc9f55c9636dd8e28732 Mon Sep 17 00:00:00 2001 From: blizzz Date: Tue, 16 Jun 2020 10:55:51 +0200 Subject: [PATCH] be more clear about the condition Co-authored-by: Christoph Wurst --- apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index a4a3705e22..0daa4f1504 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;