]> git.mxchange.org Git - friendica.git/commitdiff
Don't cache account probing for empty networks
authorMichael Vogel <icarus@dabo.de>
Tue, 19 Apr 2016 14:19:23 +0000 (16:19 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 19 Apr 2016 14:19:23 +0000 (16:19 +0200)
include/Scrape.php

index 68926a997ec1aa9dc8afd888ce3d5249030b4bdb..84257f4811aac6e3d132af29475475c82ddd17df 100644 (file)
@@ -846,7 +846,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
        }
 
        // Only store into the cache if the value seems to be valid
-       if ($result['network'] != NETWORK_PHANTOM) {
+       if (!in_array($result['network'], array(NETWORK_PHANTOM, ""))) {
                Cache::set("probe_url:".$mode.":".$original_url,serialize($result), CACHE_DAY);
 
                /// @todo temporary fix - we need a real contact update function that updates only changing fields