summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Collaborators/MailPlugin.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-02 11:42:29 +0100
committerJoas Schilling <coding@schilljs.com>2018-03-02 11:42:57 +0100
commite05f338ff19f910197212768e179587d31bd0299 (patch)
tree499b78f5758164cc651860d312a05fdaf7322d05 /lib/private/Collaboration/Collaborators/MailPlugin.php
parent12420aef42a6bb01b85305fc98ace091c7bc1ce7 (diff)
downloadnextcloud-server-e05f338ff19f910197212768e179587d31bd0299.tar.gz
nextcloud-server-e05f338ff19f910197212768e179587d31bd0299.zip
Add the users result only when non empty so tests stay the same
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration/Collaborators/MailPlugin.php')
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php
index 6b35cf438a7..c3816161ce3 100644
--- a/lib/private/Collaboration/Collaborators/MailPlugin.php
+++ b/lib/private/Collaboration/Collaborators/MailPlugin.php
@@ -191,8 +191,10 @@ class MailPlugin implements ISearchPlugin {
];
}
+ if (!empty($userResults['wide'])) {
+ $searchResult->addResultSet($userType, $userResults['wide'], []);
+ }
$searchResult->addResultSet($emailType, $result['wide'], $result['exact']);
- $searchResult->addResultSet($userType, [], $userResults['wide']);
return true;
}