From 5d0cb00d5ef9e9647ab7f7ae913ff9d0d2684efc Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 31 Jul 2013 14:11:59 +0200 Subject: Fix removing attachments from the list with database_attachments plugin --- plugins/database_attachments/database_attachments.php | 6 +----- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3