summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-02 11:42:29 +0100
committerJoas Schilling <coding@schilljs.com>2018-03-09 10:15:25 +0100
commit932fcc9859a0d9061048388b310c4f1871fa12f1 (patch)
treecd990880847bc001e7510ba9fd4694797b9f40fe
parent5b6590f1e912bdf5dcbab8b37753b67c17c10868 (diff)
downloadnextcloud-server-932fcc9859a0d9061048388b310c4f1871fa12f1.tar.gz
nextcloud-server-932fcc9859a0d9061048388b310c4f1871fa12f1.zip
Add the users result only when non empty so tests stay the same
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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 7324d73a9ab..eb524b866a5 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;
}