diff options
author | Joas Schilling <coding@schilljs.com> | 2018-03-02 13:42:29 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-03-09 12:15:25 +0300 |
commit | 932fcc9859a0d9061048388b310c4f1871fa12f1 (patch) | |
tree | cd990880847bc001e7510ba9fd4694797b9f40fe /lib | |
parent | 5b6590f1e912bdf5dcbab8b37753b67c17c10868 (diff) |
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')
-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; } |