diff options
author | Joas Schilling <coding@schilljs.com> | 2018-03-02 11:42:29 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-03-02 11:42:57 +0100 |
commit | e05f338ff19f910197212768e179587d31bd0299 (patch) | |
tree | 499b78f5758164cc651860d312a05fdaf7322d05 /lib/private/Collaboration/Collaborators/MailPlugin.php | |
parent | 12420aef42a6bb01b85305fc98ace091c7bc1ce7 (diff) | |
download | nextcloud-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.php | 4 |
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; } |