From 7fdc341a228abbbbf5139d8bf0386bd3462f053a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 19 May 2015 03:31:56 -0400
Subject: [PATCH] Fix attached file path unsetting in database_attachments plugin (#1490393)

---
 plugins/redundant_attachments/redundant_attachments.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/redundant_attachments/redundant_attachments.php b/plugins/redundant_attachments/redundant_attachments.php
index 91a0275..24af7d9 100644
--- a/plugins/redundant_attachments/redundant_attachments.php
+++ b/plugins/redundant_attachments/redundant_attachments.php
@@ -128,7 +128,7 @@
 
         $data = $args['path'] ? file_get_contents($args['path']) : $args['data'];
 
-        unset($args['data']);
+        $args['data'] = null;
 
         $key  = $this->_key($args);
         $data = base64_encode($data);

--
Gitblit v1.9.1