diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-25 10:38:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 10:38:49 +0300 |
commit | ead4d98accd0296ed487741c3769927cce10e814 (patch) | |
tree | f74cf8483cc422502fddf7792f7bd53f08484c31 /apps | |
parent | f218a8083582c3498b58783f877f57703bec9f38 (diff) | |
parent | 339dec45be1f53631cec6a42ebc7672334bcc6cb (diff) |
Merge pull request #22401 from nextcloud/backport/22394/stable18
[stable18] 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 6a5da08a8a4..886eb5dcfa9 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -292,7 +292,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']; } } |