1
0
Fork 0

Optical adjustments for contacts/set "last_failure" when inaccessible

This commit is contained in:
Michael Vogel 2015-11-06 09:15:20 +01:00
commit 0f563525bd
4 changed files with 23 additions and 6 deletions

View 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 {