diff options
author | friendica <info@friendica.com> | 2013-11-17 20:09:40 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-17 20:09:40 -0800 |
commit | 6378600747e70ed19f43614cd022aa332d731c45 (patch) | |
tree | 0c232b40d1cedd720151cf6b2b3632ea72e7479b /include/items.php | |
parent | 23352b939b0fadaadad9c6e02d6d1545f00ee0e9 (diff) | |
download | volse-hubzilla-6378600747e70ed19f43614cd022aa332d731c45.tar.gz volse-hubzilla-6378600747e70ed19f43614cd022aa332d731c45.tar.bz2 volse-hubzilla-6378600747e70ed19f43614cd022aa332d731c45.zip |
fix commented timestamp
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 5625f2c68..7db22d0da 100755 --- a/include/items.php +++ b/include/items.php @@ -1783,13 +1783,14 @@ function item_store($arr,$allow_exec = false) { // update the commented timestamp on the parent - $z = q("select max(created) as created from item where parent_mid = '%s' and uid = %d ", + $z = q("select max(commented) as commented from item where parent_mid = '%s' and uid = %d ", dbesc($arr['parent_mid']), intval($arr['uid']) ); - q("UPDATE item set created = '%s', changed = '%s' WHERE id = %d LIMIT 1", - dbesc(($z) ? $z[0]['created'] : (datetime_convert())), + q("UPDATE item set commented = '%s', changed = '%s' WHERE id = %d LIMIT 1", + dbesc(($z) ? $z[0]['commented'] : (datetime_convert())), + dbesc(datetime_convert()), intval($parent_id) ); |