Content column is flushed when the item status is set to removed

This commit is contained in:
Frederic Guillot 2013-06-13 22:08:38 -04:00
parent 9151a295e5
commit 4abf966878

View File

@ -317,7 +317,7 @@ function set_item_removed($id)
\PicoTools\singleton('db') \PicoTools\singleton('db')
->table('items') ->table('items')
->eq('id', $id) ->eq('id', $id)
->save(array('status' => 'removed')); ->save(array('status' => 'removed', 'content' => ''));
} }
@ -384,7 +384,7 @@ function mark_as_removed()
\PicoTools\singleton('db') \PicoTools\singleton('db')
->table('items') ->table('items')
->eq('status', 'read') ->eq('status', 'read')
->save(array('status' => 'removed')); ->save(array('status' => 'removed', 'content' => ''));
} }
@ -398,7 +398,7 @@ function autoflush()
->table('items') ->table('items')
->eq('status', 'read') ->eq('status', 'read')
->lt('updated', strtotime('-'.$autoflush.'day')) ->lt('updated', strtotime('-'.$autoflush.'day'))
->save(array('status' => 'removed')); ->save(array('status' => 'removed', 'content' => ''));
} }
} }