be more clear about the condition

Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com>
This commit is contained in:
blizzz 2020-06-16 10:55:51 +02:00 committed by backportbot[bot]
parent 6f49974851
commit 8e02367453
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ abstract class AbstractMapping {
*/ */
public function getDNByName($name) { public function getDNByName($name) {
$dn = array_search($name, $this->cache); $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; $this->cache[$dn] = $name;
} }
return $dn; return $dn;