mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Allow empty filter (=== '' doesn't work) (#6999)
This commit is contained in:
parent
f85ac97d8c
commit
27dcb4d27b
|
@ -322,7 +322,7 @@ class LdapAd extends LdapAdConfiguration
|
|||
private function getFilter(): ?string
|
||||
{
|
||||
$filter = $this->ldapSettings['ldap_filter'];
|
||||
if ('' === $filter) {
|
||||
if (!$filter) {
|
||||
return null;
|
||||
}
|
||||
// Add surrounding parentheses as needed
|
||||
|
|
Loading…
Reference in a new issue