Prevents an endless loop when only the non-public contact is available in Contact::magicLinkByContact
This commit is contained in:
parent
1c6bf7d25a
commit
0fbfb7c970
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue