summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}