]> git.mxchange.org Git - friendica.git/commitdiff
No timeout problem anymore in preview.
authorMichael <heluecht@pirati.ca>
Fri, 11 Aug 2017 20:25:02 +0000 (20:25 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 11 Aug 2017 20:25:02 +0000 (20:25 +0000)
include/text.php

index fa0f84afb46415745b0a289383ea846c284224ee..0a36a7b736cc2078d45b7f2fe0fb62ea1ea79e9a 100644 (file)
@@ -1289,7 +1289,7 @@ function put_item_in_cache(&$item, $update = false) {
                $item["rendered-hash"] = hash("md5", $item["body"]);
                $item["body"] = $body;
 
-               if ($update && ($item["id"] != 0)) {
+               if ($update && ($item["id"] > 0)) {
                        dba::update('item', array('rendered-html' => $item["rendered-html"], 'rendered-hash' => $item["rendered-hash"]),
                                        array('id' => $item["id"]), false);
                }