Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -236,7 +236,7 @@ |
237 | 237 | * @param null $deref |
238 | 238 | * @return resource |
239 | 239 | */ |
240 | | - public static function ldap_search( $ldapconn, $basedn, $filter, $attributes=null, $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
| 240 | + public static function ldap_search( $ldapconn, $basedn, $filter, $attributes=array(), $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
241 | 241 | wfSuppressWarnings(); |
242 | 242 | $ret = ldap_search( $ldapconn, $basedn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref ); |
243 | 243 | wfRestoreWarnings(); |
— | — | @@ -255,7 +255,7 @@ |
256 | 256 | * @param null $deref |
257 | 257 | * @return resource |
258 | 258 | */ |
259 | | - public static function ldap_read( $ldapconn, $basedn, $filter, $attributes=null, $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
| 259 | + public static function ldap_read( $ldapconn, $basedn, $filter, $attributes=array(), $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
260 | 260 | wfSuppressWarnings(); |
261 | 261 | $ret = ldap_read( $ldapconn, $basedn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref ); |
262 | 262 | wfRestoreWarnings(); |
— | — | @@ -274,7 +274,7 @@ |
275 | 275 | * @param null $deref |
276 | 276 | * @return \resource |
277 | 277 | */ |
278 | | - public static function ldap_list( $ldapconn, $basedn, $filter, $attributes=null, $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
| 278 | + public static function ldap_list( $ldapconn, $basedn, $filter, $attributes=array(), $attrsonly=null, $sizelimit=null, $timelimit=null, $deref=null ) { |
279 | 279 | wfSuppressWarnings(); |
280 | 280 | $ret = ldap_list( $ldapconn, $basedn, $filter, $attributes, $attrsonly, $sizelimit, $timelimit, $deref ); |
281 | 281 | wfRestoreWarnings(); |