From 0fbfb7c970d5a2b7ecc8fb3cf301422d84adefff Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 10 Jun 2019 19:10:39 -0400 Subject: [PATCH] Prevents an endless loop when only the non-public contact is available in Contact::magicLinkByContact --- src/Model/Contact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a0bbdd104..01c30fad7 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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); }