diff --git a/Services/LDAP/classes/class.ilLDAPQuery.php b/Services/LDAP/classes/class.ilLDAPQuery.php index 79a78aaa6232..266b7f660fab 100644 --- a/Services/LDAP/classes/class.ilLDAPQuery.php +++ b/Services/LDAP/classes/class.ilLDAPQuery.php @@ -513,7 +513,7 @@ private function readUserData(string $a_name, bool $a_check_dn = false, bool $a_ * @param array|null $controls LDAP Control to be passed on the the ldap functions * @return resource|null */ - private function queryByScope(int $a_scope, string $a_base_dn, string $a_filter, array $a_attributes, array $controls = null) + private function queryByScope(int $a_scope, string $a_base_dn, string $a_filter, array $a_attributes, array $controls = []) { $a_filter = $a_filter ?: "(objectclass=*)";