summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/MailPlugin.php5
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,