From 3db3e65121e5908c7a5729dfef965a747da61cca Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 14 Sep 2017 23:41:04 +0200 Subject: add tests for Lookup Plugin Signed-off-by: Arthur Schiwon --- lib/private/Collaboration/Collaborators/LookupPlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/private') diff --git a/lib/private/Collaboration/Collaborators/LookupPlugin.php b/lib/private/Collaboration/Collaborators/LookupPlugin.php index e3a04fb7dde..3a6a0943772 100644 --- a/lib/private/Collaboration/Collaborators/LookupPlugin.php +++ b/lib/private/Collaboration/Collaborators/LookupPlugin.php @@ -50,7 +50,7 @@ class LookupPlugin implements ISearchPlugin { $lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com'); $lookupServerUrl = rtrim($lookupServerUrl, '/'); - $result = ['wide' => [], 'exact' => []]; + $result = []; try { $client = $this->clientService->newClient(); @@ -64,7 +64,6 @@ class LookupPlugin implements ISearchPlugin { $body = json_decode($response->getBody(), true); - $result = []; foreach ($body as $lookup) { $result[] = [ 'label' => $lookup['federationId'], -- cgit v1.2.3