X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=include%2Fsocgraph.php;h=32c151c0431dace3e4951edb1c110f679e7f20dc;hb=021a4fad714c25c9e031ff4792ba0e2b7377568b;hp=7c70a22a54f6c50af133abeab7ada0f5cd31cb9e;hpb=4c04a78d1b6f14ce90e4ca0b23e356d234c4a296;p=friendica.git diff --git a/include/socgraph.php b/include/socgraph.php index 7c70a22a54..32c151c043 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'; @@ -1528,7 +1529,7 @@ function get_gcontact_id($contact) { if (in_array($contact["network"], array(NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS))) $contact["url"] = clean_contact_url($contact["url"]); - $r = q("SELECT `id`, `last_contact`, `last_failure`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 2", + $r = q("SELECT `id`, `last_contact`, `last_failure`, `network` FROM `gcontact` WHERE `nurl` = '%s' LIMIT 2", dbesc(normalise_link($contact["url"]))); if ($r) {