Changeset 1038 in subversion


Ignore:
Timestamp:
Feb 11, 2008 12:28:02 PM (5 years ago)
Author:
till
Message:
  • fixing bug (1 attachment gets cut off when you have no text in a draft) -> see #1484673
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r998 r1038  
    563563{ 
    564564  global $IMAP, $MESSAGE; 
    565      
    566   // add attachments 
    567   if (!isset($_SESSION['compose']['forward_attachments']) && 
    568       is_array($MESSAGE['parts']) && sizeof($MESSAGE['parts'])>1) 
     565   
     566  /** 
     567   * add attachments 
     568   * sizeof($MESSAGE['parts'] can be 1 - e.g. attachment, but no text! 
     569   */ 
     570  if (!isset($_SESSION['compose']['forward_attachments']) 
     571      && is_array($MESSAGE['parts']) 
     572      && count($MESSAGE['parts']) > 0) 
    569573    rcmail_write_compose_attachments($MESSAGE); 
    570574 
Note: See TracChangeset for help on using the changeset viewer.