diff options
author | Joas Schilling <coding@schilljs.com> | 2018-03-02 11:42:29 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-03-09 10:15:25 +0100 |
commit | 932fcc9859a0d9061048388b310c4f1871fa12f1 (patch) | |
tree | cd990880847bc001e7510ba9fd4694797b9f40fe | |
parent | 5b6590f1e912bdf5dcbab8b37753b67c17c10868 (diff) | |
download | nextcloud-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.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 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; } |