]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Local cache: test for 404 status code
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 16:29:23 +0000 (13:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Oct 2015 16:29:23 +0000 (13:29 -0300)
data/templates/default/bookmarks.tpl.php

index 27b27ee6efa246615738ba1c37682ca2db06af9d..4fa8d8bf9d9a10a59b93a342bbca5e754ade449e 100644 (file)
@@ -352,7 +352,7 @@ if ($currenttag!= '') {
 
         $retcode = curl_getinfo($fp, CURLINFO_HTTP_CODE);
 
-        if ($retcode == 200) {
+        if ($retcode != 404) {
           $cacheLink = "| <a href=\"$assetLink\">Cache</a>";
         }