From 0d9fa7f3dcbe101f355bbbba54c533105bf7ba27 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 18 Dec 2015 05:45:20 -0500
Subject: [PATCH] Remove redundant code
---
program/steps/mail/func.inc | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 5436368..434c0ee 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -2278,14 +2278,11 @@
// So, for now we'll do not use append() on 'compose' action (#1490608).
if ($rcmail->action == 'compose') {
- $_SESSION[$session_key]['attachments'][$attachment['id']] = $attachment;
+ $COMPOSE['attachments'][$attachment['id']] = $attachment;
}
else {
$rcmail->session->append($session_key . '.attachments', $attachment['id'], $attachment);
}
-
- // Fix reference to compose session data after rcube_session::append()
- $COMPOSE =& $_SESSION[$session_key];
return $attachment;
}
--
Gitblit v1.9.1