aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index facd8b2d4..735adc717 100644
--- a/include/items.php
+++ b/include/items.php
@@ -865,6 +865,13 @@ function item_store($arr,$force_parent = false) {
intval($current_post)
);
+ // update the timestamp on the parent
+
+ q("UPDATE `item` set `changed` = '%s' WHERE `id` = %d LIMIT 1",
+ dbesc(datetime_convert()),
+ intval($parent_id)
+ );
+
if($dsprsig) {
q("insert into sign (`iid`,`signed_text`,`signature`,`signer`) values (%d,'%s','%s','%s') ",
intval($current_post),