X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fgprobe.php;h=e79cc64764a3265211bf4f4458cbaeb39e77aff8;hb=35dc56c9c25f30823ff1cfbefe8ea9eab47cc6ee;hp=719cfce48635ac4adb109964d9eed19a3f7a498b;hpb=0060e2449e4f225436964a8203b706ddd3e0d01f;p=friendica.git diff --git a/include/gprobe.php b/include/gprobe.php index 719cfce486..e79cc64764 100644 --- a/include/gprobe.php +++ b/include/gprobe.php @@ -33,11 +33,13 @@ function gprobe_run(&$argv, &$argc){ $arr = probe_url($url); - if (is_null($result)) + if (is_null($result)) { Cache::set("gprobe:".$urlparts["host"], $arr); + } - if (!in_array($arr["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) + if (!in_array($arr["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) { update_gcontact($arr); + } $r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1", dbesc(normalise_link($url))