From: blizzz Date: Tue, 16 Jun 2020 08:55:51 +0000 (+0200) Subject: be more clear about the condition X-Git-Tag: v20.0.0beta1~397^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ab6ee40de6107c9f660305ee49d5b11044d5266;p=nextcloud-server.git be more clear about the condition Co-authored-by: Christoph Wurst --- 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;