diff --git a/app/Services/LdapAd.php b/app/Services/LdapAd.php index ab09307f4c..7c6f28edf0 100644 --- a/app/Services/LdapAd.php +++ b/app/Services/LdapAd.php @@ -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