From 636647abd92a44643e5171d713671bb4fb508426 Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 9 Jan 2023 11:12:56 +0100 Subject: [PATCH] LDAP: Change default value for `$controls` to support PHP 7.4 See: https://github.com/ILIAS-eLearning/ILIAS/pull/4796 --- Services/LDAP/classes/class.ilLDAPQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=*)";