X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsocgraph.php;h=32c151c0431dace3e4951edb1c110f679e7f20dc;hb=58a444b4305bd8a1c2ab7ee172c3972e091cc964;hp=6249f189e9a0a0d30c0b44cfa4fa78fd95ba86ec;hpb=4f25396faeaa501907e93b24ee51ebdd08f84993;p=friendica.git diff --git a/include/socgraph.php b/include/socgraph.php index 6249f189e9..32c151c043 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1529,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) {