From 3b36bcfb68476c83cecfdb6e765c014bbdbd5134 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 18 Dec 2015 05:46:25 -0500
Subject: [PATCH] Cleanup

---
 program/steps/mail/func.inc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 434c0ee..2d89a92 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -2268,8 +2268,6 @@
     if ($attachment['status']) {
         unset($attachment['data'], $attachment['status'], $attachment['content_id'], $attachment['abort']);
 
-        $session_key = 'compose_data_' . $compose_id;
-
         // rcube_session::append() replaces current session data with the old values
         // (in rcube_session::reload()). This is a problem in 'compose' action, because before
         // the first append() use we set some important data in the session.
@@ -2281,7 +2279,7 @@
             $COMPOSE['attachments'][$attachment['id']] = $attachment;
         }
         else {
-            $rcmail->session->append($session_key . '.attachments', $attachment['id'], $attachment);
+            $rcmail->session->append('compose_data_' . $compose_id . '.attachments', $attachment['id'], $attachment);
         }
 
         return $attachment;

--
Gitblit v1.9.1