]> git.mxchange.org Git - friendica.git/blobdiff - include/Contact.php
Merge pull request #2016 from fabrixxm/template_vars_hook
[friendica.git] / include / Contact.php
index 5138f276be4a9c5a192766d9fc5c7167cfac113d..eeb38a5d7a519f031b3e1b3ae939519da55f3632 100644 (file)
@@ -204,7 +204,8 @@ function get_contact_details_by_url($url, $uid = -1) {
        if ($r) {
                $profile = $r[0];
 
-               if ($profile["addr"] == "")
+               if ((($profile["addr"] == "") OR ($profile["name"] == "")) AND
+                       in_array($profile["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS)))
                        proc_run('php',"include/update_gcontact.php", $profile["gid"]);
 
        } else {