Avoid endless loop when trying to fetch contact id

This commit is contained in:
Michael 2018-10-18 03:01:34 +00:00
parent e254ace9d5
commit 35da40c2cb

View File

@ -1138,7 +1138,7 @@ class Contact extends BaseObject
}
}
if (!$contact_id && ($data["alias"] != '') && ($data["alias"] != $url)) {
if (!$contact_id && ($data["alias"] != '') && ($data["alias"] != $url) && !$no_update) {
$contact_id = self::getIdForURL($data["alias"], $uid, true);
}