diff options
author | zotlabs <mike@macgirvin.com> | 2018-06-10 15:27:55 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-06-10 15:27:55 -0700 |
commit | 6959c9e42350b7d19402bef24bb4fd366af22ed4 (patch) | |
tree | 0e91ef5a681901847a3e52512aa17065f1031aa7 /include/items.php | |
parent | 7bf1c5f27b8b8f0eea226e81a5db99585c5a56b3 (diff) | |
download | volse-hubzilla-6959c9e42350b7d19402bef24bb4fd366af22ed4.tar.gz volse-hubzilla-6959c9e42350b7d19402bef24bb4fd366af22ed4.tar.bz2 volse-hubzilla-6959c9e42350b7d19402bef24bb4fd366af22ed4.zip |
fixes for immediate expire, channel_active not initialised in DB
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php index e75a9659d..54df5d322 100755 --- a/include/items.php +++ b/include/items.php @@ -3697,10 +3697,7 @@ function delete_item_lowlevel($item, $stage = DROPITEM_NORMAL, $force = false) { ); } else { - $r = q("UPDATE item SET item_deleted = 1, body = '', title = '', - changed = '%s', edited = '%s' WHERE id = %d", - dbesc(datetime_convert()), - dbesc(datetime_convert()), + $r = q("DELETE FROM item WHERE id = %d", intval($item['id']) ); } |