Index: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc	(revision 998)
+++ trunk/roundcubemail/program/steps/mail/compose.inc	(revision 1038)
@@ -563,8 +563,12 @@
 {
   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);
 
