Some more changed queries
This commit is contained in:
parent
d352a290fe
commit
99f0c01cdd
3 changed files with 23 additions and 20 deletions
|
|
@ -1290,8 +1290,8 @@ function put_item_in_cache(&$item, $update = false) {
|
|||
$item["body"] = $body;
|
||||
|
||||
if ($update && ($item["id"] != 0)) {
|
||||
q("UPDATE `item` SET `rendered-html` = '%s', `rendered-hash` = '%s' WHERE `id` = %d",
|
||||
dbesc($item["rendered-html"]), dbesc($item["rendered-hash"]), intval($item["id"]));
|
||||
dba::update('item', array('rendered-html' => $item["rendered-html"], 'rendered-hash' => $item["rendered-hash"]),
|
||||
array('id' => $item["id"]), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue