till
2008-02-11 8ecb0e8fb9b10ef424a5088545f68fb939ccf7c8
* fixing bug (1 attachment gets cut off when you have no text in a draft) -> see #1484673



1 files modified
10 ■■■■ changed files
program/steps/mail/compose.inc 10 ●●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -563,9 +563,13 @@
{
  global $IMAP, $MESSAGE;
    
  // add attachments
  if (!isset($_SESSION['compose']['forward_attachments']) &&
      is_array($MESSAGE['parts']) && sizeof($MESSAGE['parts'])>1)
  /**
   * add attachments
   * sizeof($MESSAGE['parts'] can be 1 - e.g. attachment, but no text!
   */
  if (!isset($_SESSION['compose']['forward_attachments'])
      && is_array($MESSAGE['parts'])
      && count($MESSAGE['parts']) > 0)
    rcmail_write_compose_attachments($MESSAGE);
  return $body;