]> git.mxchange.org Git - friendica.git/commitdiff
Avoid endless loop when trying to fetch contact id
authorMichael <heluecht@pirati.ca>
Thu, 18 Oct 2018 03:01:34 +0000 (03:01 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 18 Oct 2018 03:01:34 +0000 (03:01 +0000)
src/Model/Contact.php

index 4588bb7129d3e4f2f4ad8936e177f5d133422f29..24e9be0424fa1971ea21b5a3c1ce0718aa32c297 100644 (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);
                }