1
1
Fork 0

Bugfix - provide magic links for remote user in magicLink()

This commit is contained in:
rabuzarus 2019-01-18 17:50:21 +01:00
parent 678004e15a
commit 528d175baa
2 changed files with 2 additions and 2 deletions

View file

@ -889,7 +889,7 @@ class HTML
}
/**
* @brief Format contacts as picture links or as texxt links
* @brief Format contacts as picture links or as text links
*
* @param array $contact Array with contacts which contains an array with
* int 'id' => The ID of the contact

View file

@ -2089,7 +2089,7 @@ class Contact extends BaseObject
*/
public static function magicLink($contact_url, $url = '')
{
if (!local_user() && remote_user()) {
if (!local_user() && !remote_user()) {
return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url;
}