A free open source IT asset/license management system
Allow empty filter (=== '' doesn't work) (#6999)
Steffen27dcb4d27bc1
diff --git a/app/Services/LdapAd.php b/app/Services/LdapAd.phpindex ab09307f4c..7c6f28edf0 100644--- a/app/Services/LdapAd.php+++ b/app/Services/LdapAd.php@@ -322,7 +322,7 @@ class LdapAd extends LdapAdConfigurationprivate function getFilter(): ?string{$filter = $this->ldapSettings['ldap_filter'];- if ('' === $filter) {+ if (!$filter) {return null;}// Add surrounding parentheses as needed