diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-07-31 14:11:59 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-07-31 14:11:59 +0200 |
commit | 5d0cb00d5ef9e9647ab7f7ae913ff9d0d2684efc (patch) | |
tree | 25349e39dfe4cc070e3de93e512163fab097a211 /plugins | |
parent | f09b169e5151e377280e843804fb934e725268db (diff) |
Fix removing attachments from the list with database_attachments plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/database_attachments/database_attachments.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/database_attachments/database_attachments.php b/plugins/database_attachments/database_attachments.php index 47e2b5222..f90807450 100644 --- a/plugins/database_attachments/database_attachments.php +++ b/plugins/database_attachments/database_attachments.php @@ -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; } |