summaryrefslogtreecommitdiff
path: root/plugins/database_attachments/database_attachments.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-07-31 14:11:59 +0200
committerAleksander Machniak <alec@alec.pl>2013-07-31 14:11:59 +0200
commit5d0cb00d5ef9e9647ab7f7ae913ff9d0d2684efc (patch)
tree25349e39dfe4cc070e3de93e512163fab097a211 /plugins/database_attachments/database_attachments.php
parentf09b169e5151e377280e843804fb934e725268db (diff)
Fix removing attachments from the list with database_attachments plugin
Diffstat (limited to 'plugins/database_attachments/database_attachments.php')
-rw-r--r--plugins/database_attachments/database_attachments.php6
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;
}