Prevent endless loop when updating contact by probe
This commit is contained in:
parent
2a873651c5
commit
89f7ee2cc5
|
@ -2117,7 +2117,7 @@ class Contact
|
|||
}
|
||||
|
||||
if (Strings::normaliseLink($ret['url']) != Strings::normaliseLink($contact['url'])) {
|
||||
$cid = self::getIdForURL($ret['url']);
|
||||
$cid = self::getIdForURL($ret['url'], 0, false);
|
||||
if (!empty($cid) && ($cid != $id)) {
|
||||
Logger::notice('URL of contact changed.', ['id' => $id, 'new_id' => $cid, 'old' => $contact['url'], 'new' => $ret['url']]);
|
||||
return self::updateFromProbeArray($cid, $ret);
|
||||
|
|
Loading…
Reference in a new issue