From 4ada71081f5c99bd0807b879226256d91f2fda61 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 11 Aug 2017 20:25:02 +0000 Subject: [PATCH] No timeout problem anymore in preview. --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index fa0f84afb4..0a36a7b736 100644 --- a/include/text.php +++ b/include/text.php @@ -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); }