Allow empty filter (=== '' doesn't work) (#6999)

This commit is contained in:
Steffen 2019-05-24 04:59:27 +02:00 committed by snipe
parent f85ac97d8c
commit 27dcb4d27b

View file

@ -322,7 +322,7 @@ class LdapAd extends LdapAdConfiguration
private function getFilter(): ?string private function getFilter(): ?string
{ {
$filter = $this->ldapSettings['ldap_filter']; $filter = $this->ldapSettings['ldap_filter'];
if ('' === $filter) { if (!$filter) {
return null; return null;
} }
// Add surrounding parentheses as needed // Add surrounding parentheses as needed