mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:50:11 +00:00
Fixes notices
This commit is contained in:
parent
e17db489ee
commit
f3cae4bf0c
2 changed files with 5 additions and 1 deletions
|
@ -2373,6 +2373,10 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function magicLinkByContact($contact, $url = '')
|
||||
{
|
||||
if (empty($contact['id']) || empty($contact['uid'])) {
|
||||
return $url ?: $contact['url'];
|
||||
}
|
||||
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue