diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php
index f7ac040eec..a3ef8d81fc 100644
--- a/src/Content/Text/HTML.php
+++ b/src/Content/Text/HTML.php
@@ -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
diff --git a/src/Model/Contact.php b/src/Model/Contact.php
index 408a1ade4b..52bcc3b54b 100644
--- a/src/Model/Contact.php
+++ b/src/Model/Contact.php
@@ -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;
}