diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-08-24 18:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 18:05:00 +0200 |
commit | 111496c7cd11415877ed9a91794b5b5b05d6764a (patch) | |
tree | 1ca212ff5455bee82fd4ea2d2a21c8d84363d3d5 /apps | |
parent | df857604d517d744f89c307fea344c43aa3da71e (diff) | |
parent | 6d576a9100c41c6cb1d950bcb5845f83b5d33377 (diff) | |
download | nextcloud-server-111496c7cd11415877ed9a91794b5b5b05d6764a.tar.gz nextcloud-server-111496c7cd11415877ed9a91794b5b5b05d6764a.zip |
Merge pull request #22394 from nextcloud/fix/share-federation-missing-fn
Fix missing FN from federated contact
Diffstat (limited to 'apps')
-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']; } } |