Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-08-25 10:38:44 +0300
committerGitHub <noreply@github.com>2020-08-25 10:38:44 +0300
commit5cf3c27a0329990e44e395affdf28903858b63d3 (patch)
tree185631093e0d81e8ba79d82864540f14918c2e32
parent1277b89a0c79e29f26c58ecc17f26a744329b6f6 (diff)
parent060672734bc6db4652a638190786a96e7d66601d (diff)
Merge pull request #22400 from nextcloud/backport/22394/stable19
[stable19] Fix missing FN from federated contact
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
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 50ba39564ba..60510b1ee90 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -296,7 +296,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'];
}
}