From 5d0cb00d5ef9e9647ab7f7ae913ff9d0d2684efc Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 31 Jul 2013 08:11:59 -0400
Subject: [PATCH] Fix removing attachments from the list with database_attachments plugin

---
 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 47e2b52..f908074 100644
--- a/plugins/database_attachments/database_attachments.php
+++ b/plugins/database_attachments/database_attachments.php
@@ -84,14 +84,10 @@
      */
     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;
     }

--
Gitblit v1.9.1