From: Michael Date: Fri, 11 Aug 2017 20:25:02 +0000 (+0000) Subject: No timeout problem anymore in preview. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ada71081f5c99bd0807b879226256d91f2fda61;p=friendica.git No timeout problem anymore in preview. --- 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); }