Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>pull/44533/head
$this->backends[$configPrefix] = | $this->backends[$configPrefix] = | ||||
new Group_LDAP($this->getAccess($configPrefix), $this->groupPluginManager, $this->config, $this->ncUserManager); | new Group_LDAP($this->getAccess($configPrefix), $this->groupPluginManager, $this->config, $this->ncUserManager); | ||||
if (is_null($this->refBackend)) { | if (is_null($this->refBackend)) { | ||||
$this->refBackend = &$this->backends[$configPrefix]; | |||||
$this->refBackend = $this->backends[$configPrefix]; | |||||
} | } | ||||
} | } | ||||
$serverControls = []; | $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) { | $oldHandler = set_error_handler(function ($no, $message, $file, $line) use (&$oldHandler) { | ||||
if (str_contains($message, 'Partial search results returned: Sizelimit exceeded')) { | if (str_contains($message, 'Partial search results returned: Sizelimit exceeded')) { | ||||
return true; | return true; |
); | ); | ||||
if (is_null($this->refBackend)) { | if (is_null($this->refBackend)) { | ||||
$this->refBackend = &$this->backends[$configPrefix]; | |||||
$this->refBackend = $this->backends[$configPrefix]; | |||||
} | } | ||||
} | } | ||||