Browse Source
fix: Avoid useless reference usage in user_ldap
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44533/head
Côme Chilliet
2 years ago
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
3 changed files with
3 additions and
2 deletions
-
apps/user_ldap/lib/Group_Proxy.php
-
apps/user_ldap/lib/LDAP.php
-
apps/user_ldap/lib/User_Proxy.php
|
|
|
@ -73,7 +73,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet |
|
|
|
$this->backends[$configPrefix] = |
|
|
|
new Group_LDAP($this->getAccess($configPrefix), $this->groupPluginManager, $this->config, $this->ncUserManager); |
|
|
|
if (is_null($this->refBackend)) { |
|
|
|
$this->refBackend = &$this->backends[$configPrefix]; |
|
|
|
$this->refBackend = $this->backends[$configPrefix]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -204,6 +204,7 @@ class LDAP implements ILDAPWrapper { |
|
|
|
$serverControls = []; |
|
|
|
} |
|
|
|
|
|
|
|
/** @psalm-suppress UndefinedVariable $oldHandler is defined when the closure is called but psalm fails to get that */ |
|
|
|
$oldHandler = set_error_handler(function ($no, $message, $file, $line) use (&$oldHandler) { |
|
|
|
if (str_contains($message, 'Partial search results returned: Sizelimit exceeded')) { |
|
|
|
return true; |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP |
|
|
|
); |
|
|
|
|
|
|
|
if (is_null($this->refBackend)) { |
|
|
|
$this->refBackend = &$this->backends[$configPrefix]; |
|
|
|
$this->refBackend = $this->backends[$configPrefix]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|