diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-24 15:15:32 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-24 15:15:32 +0200 |
commit | 6d576a9100c41c6cb1d950bcb5845f83b5d33377 (patch) | |
tree | 0ff99c5341de89223f163f648920eab298080c44 /apps/files_sharing/lib | |
parent | bf162d08f5f880617f83e0d47ab37825837b6c47 (diff) | |
download | nextcloud-server-6d576a9100c41c6cb1d950bcb5845f83b5d33377.tar.gz nextcloud-server-6d576a9100c41c6cb1d950bcb5845f83b5d33377.zip |
Fix missing FN from federated contact
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 9ae192ff5d6..75824468559 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -316,7 +316,7 @@ class ShareAPIController extends OCSController { $result = \OC::$server->getContactsManager()->search($query, [$property]); foreach ($result as $r) { foreach ($r[$property] as $value) { - if ($value === $query) { + if ($value === $query && $r['FN']) { return $r['FN']; } } |