$user_data['url'] ?? '',
$user_data['photo'] ?? '',
$user_data['network'] ?? '',
- $contactDetails['id'] ?? 0,
+ $contactDetails['cid'] ?? 0,
$user_data['id'] ?? 0,
$user_data['tags'] ?? ''
);
$profile['photo'] ?? '',
Protocol::DFRN,
$contactDetails['cid'] ?? 0,
- 0,
+ $contactDetails['zid'] ?? 0,
$profile['tags'] ?? ''
);
$result = new ContactResult(
$contact['name'],
$contact['addr'],
- $contact['addr'],
+ $contact['addr'] ?: $contact['url'],
$contact['url'],
$contact['photo'],
$contact['network'],
- $contact['cid'] ?? 0,
- $contact['zid'] ?? 0,
+ 0,
+ $contact['pid'],
$contact['keywords']
);