1
1
Fork 0

No timeout problem anymore in preview.

This commit is contained in:
Michael 2017-08-11 20:25:02 +00:00
parent 556cc0cc4c
commit 4ada71081f

View 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);
}