Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Search/LocalUsers.php')
-rw-r--r--lib/Search/LocalUsers.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Search/LocalUsers.php b/lib/Search/LocalUsers.php
index 21e60e21..b6f01b50 100644
--- a/lib/Search/LocalUsers.php
+++ b/lib/Search/LocalUsers.php
@@ -60,15 +60,15 @@ class LocalUsers implements ISearch {
/**
* {@inheritdoc}
*/
- public function search($search) {
+ public function search($needle): array {
$result = [];
$userManager = \OC::$server->getUserManager();
if ($this->configService->getAppValue(ConfigService::CIRCLES_SEARCH_FROM_COLLABORATOR) === '1') {
- return $this->searchFromCollaborator($search);
+ return $this->searchFromCollaborator($needle);
}
- $users = $userManager->search($search);
+ $users = $userManager->search($needle);
foreach ($users as $user) {
$result[] =
new SearchResult(