X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsocgraph.php;h=6249f189e9a0a0d30c0b44cfa4fa78fd95ba86ec;hb=df8b522f6b96bc3a631e608ee430555590e91f0c;hp=135d759bfda0115df81d9cc9e2d4ab7d595f6350;hpb=ad20c5504deba9dbb4ea5c5deba598f2c448b344;p=friendica.git diff --git a/include/socgraph.php b/include/socgraph.php index 135d759bfd..6249f189e9 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -220,8 +220,9 @@ function poco_check($profile_url, $name, $network, $profile_photo, $about, $loca $r = q("SELECT `network` FROM `contact` WHERE `nurl` = '%s' AND `network` != '' AND `network` != '%s' LIMIT 1", dbesc(normalise_link($profile_url)), dbesc(NETWORK_STATUSNET) ); - if (dbm::is_result($r)) + if (dbm::is_result($r)) { $network = $r[0]["network"]; + } if (($network == "") OR ($network == NETWORK_OSTATUS)) { $r = q("SELECT `network`, `url` FROM `contact` WHERE `alias` IN ('%s', '%s') AND `network` != '' AND `network` != '%s' LIMIT 1", @@ -1187,7 +1188,7 @@ function update_suggestions() { $done = array(); - /// TODO Check if it is really neccessary to poll the own server + /// @TODO Check if it is really neccessary to poll the own server poco_load(0,0,0,App::get_baseurl() . '/poco'); $done[] = App::get_baseurl() . '/poco'; @@ -1575,7 +1576,7 @@ function get_gcontact_id($contact) { proc_run(PRIORITY_LOW, 'include/gprobe.php', bin2hex($contact["url"])); } - if ((count($r) > 1) AND ($gcontact_id > 0) AND ($contact["url"] != "")) + if ((dbm::is_result($r)) AND (count($r) > 1) AND ($gcontact_id > 0) AND ($contact["url"] != "")) q("DELETE FROM `gcontact` WHERE `nurl` = '%s' AND `id` != %d", dbesc(normalise_link($contact["url"])), intval($gcontact_id));