mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
parent
8998926e5b
commit
f59ea2af55
40 changed files with 115 additions and 94 deletions
|
@ -78,7 +78,7 @@ class AllFriends extends BaseModule
|
|||
|
||||
$entry = [
|
||||
'url' => Model\Contact::magicLinkbyId($friend['id'], $friend['url']),
|
||||
'itemurl' => defaults($contactDetails, 'addr', $friend['url']),
|
||||
'itemurl' => ($contactDetails['addr'] ?? '') ?: $friend['url'],
|
||||
'name' => $contactDetails['name'],
|
||||
'thumb' => ProxyUtils::proxifyUrl($contactDetails['thumb'], false, ProxyUtils::SIZE_THUMB),
|
||||
'img_hover' => $contactDetails['name'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue