From 0d9fa7f3dcbe101f355bbbba54c533105bf7ba27 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 18 Dec 2015 11:45:20 +0100 Subject: [PATCH] Remove redundant code --- program/steps/mail/func.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 5436368fa..434c0ee06 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -2278,15 +2278,12 @@ function rcmail_save_attachment($message, $pid, $compose_id, $params = array()) // 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; } else if ($path) {