Prevents an endless loop when only the non-public contact is available in Contact::magicLinkByContact
This commit is contained in:
parent
1c6bf7d25a
commit
0fbfb7c970
|
@ -2355,6 +2355,9 @@ class Contact extends BaseObject
|
||||||
return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url;
|
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);
|
return self::magicLinkByContact($data, $contact_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue