Merge pull request #22400 from nextcloud/backport/22394/stable19

[stable19] Fix missing FN from federated contact
This commit is contained in:
Roeland Jago Douma 2020-08-25 09:38:44 +02:00 committed by GitHub
commit 5cf3c27a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}
}