Fix missing FN from federated contact

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-08-24 15:15:32 +02:00 committed by backportbot[bot]
parent 4c2649c1e0
commit 060672734b
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'];
}
}