Skip to content

Commit

Permalink
LDAP: Change default value for $controls to support PHP 7.4
Browse files Browse the repository at this point in the history
See: #4796
  • Loading branch information
mjansenDatabay committed Jan 9, 2023
1 parent 71b472a commit 636647a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/LDAP/classes/class.ilLDAPQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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=*)";

Expand Down

0 comments on commit 636647a

Please sign in to comment.