diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-10-30 10:18:58 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-10-30 10:19:36 +0100 |
commit | a0d759b32460e0bb57011202df332d1bb6e7034a (patch) | |
tree | 815335ea7b85e158056d00bc908113898156e5d0 /lib | |
parent | cb463d73d5b4955935d4a0c0f4782d1a23472e2d (diff) | |
download | nextcloud-server-a0d759b32460e0bb57011202df332d1bb6e7034a.tar.gz nextcloud-server-a0d759b32460e0bb57011202df332d1bb6e7034a.zip |
Add uuid/name entry to Remote/MailPlugin tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Collaboration/Collaborators/MailPlugin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php index 1ac681c8948..6faa5d5d125 100644 --- a/lib/private/Collaboration/Collaborators/MailPlugin.php +++ b/lib/private/Collaboration/Collaborators/MailPlugin.php @@ -89,6 +89,7 @@ class MailPlugin implements ISearchPlugin { } foreach ($emailAddresses as $type => $emailAddress) { $displayName = $emailAddress; + $emailAddressType = null; if (\is_array($emailAddress)) { $emailAddressData = $emailAddress; $emailAddress = $emailAddressData['value']; @@ -171,7 +172,7 @@ class MailPlugin implements ISearchPlugin { 'label' => $displayName, 'uuid' => $contact['UID'], 'name' => $contact['FN'], - 'type' => $emailAddressType, + 'type' => $emailAddressType ?? '', 'value' => [ 'shareType' => Share::SHARE_TYPE_EMAIL, 'shareWith' => $emailAddress, @@ -182,7 +183,7 @@ class MailPlugin implements ISearchPlugin { 'label' => $displayName, 'uuid' => $contact['UID'], 'name' => $contact['FN'], - 'type' => $emailAddressType, + 'type' => $emailAddressType ?? '', 'value' => [ 'shareType' => Share::SHARE_TYPE_EMAIL, 'shareWith' => $emailAddress, |