1
0
Fork 0

Prevents an endless loop when only the non-public contact is available in Contact::magicLinkByContact

This commit is contained in:
Hypolite Petovan 2019-06-10 19:10:39 -04:00
parent 1c6bf7d25a
commit 0fbfb7c970

View file

@ -2355,6 +2355,9 @@ class Contact extends BaseObject
return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url;
}
// Prevents endless loop in case only a non-public contact exists for the contact URL
unset($data['uid']);
return self::magicLinkByContact($data, $contact_url);
}