Fix removing attachments from the list with database_attachments plugin

pull/100/merge
Aleksander Machniak 11 years ago
parent f09b169e51
commit 5d0cb00d5e

@ -84,14 +84,10 @@ class database_attachments extends filesystem_attachments
*/
function remove($args)
{
$args['status'] = false;
$cache = $this->get_cache();
$status = $cache->remove($args['id']);
if ($status) {
$args['status'] = true;
}
$args['status'] = true;
return $args;
}

Loading…
Cancel
Save