Aleksander Machniak
2015-12-18 0d9fa7f3dcbe101f355bbbba54c533105bf7ba27
Remove redundant code
1 files modified
5 ■■■■ changed files
program/steps/mail/func.inc 5 ●●●● patch | view | raw | blame | history
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;
    }