summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-06-16 10:55:51 +0200
committerGitHub <noreply@github.com>2020-06-16 10:55:51 +0200
commit0ab6ee40de6107c9f660305ee49d5b11044d5266 (patch)
treee79bc3f1012469793c9a8d0c367f2169db9e27b9 /apps/user_ldap/lib
parent0cf57d1ed4fb370a4411353aab0aceecc08dc5de (diff)
downloadnextcloud-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/lib')
-rw-r--r--apps/user_ldap/lib/Mapping/AbstractMapping.php2
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;