Remove redundant code

pull/314/head
Aleksander Machniak 9 years ago
parent cd219a45dd
commit 0d9fa7f3dc

@ -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) {

Loading…
Cancel
Save