mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -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
|
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
|
||||||
|
|
Loading…
Reference in a new issue