]> source.dussan.org Git - nextcloud-server.git/commitdiff
be more clear about the condition 21421/head
authorblizzz <blizzz@arthur-schiwon.de>
Tue, 16 Jun 2020 08:55:51 +0000 (10:55 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 08:55:51 +0000 (10:55 +0200)
Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
apps/user_ldap/lib/Mapping/AbstractMapping.php

index a4a3705e2238b333feba209379903d628a1ca709..0daa4f1504c7c57f7ee646d4ba620e977c4a8d76 100644 (file)
@@ -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;