summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-07-25 15:13:15 +0000
committerthomascube <thomas@roundcube.net>2008-07-25 15:13:15 +0000
commit6d5dbae53cd4b4b97da0b0c558292a7f1062a524 (patch)
tree244697d83b4d9fa572883a8dfe2ad0a9911a329f /program/steps/mail/compose.inc
parent94e38bbc1e497192c0b4e7345b2ceb307473dfff (diff)
Prefer File_Info over mime_content_type + detect mime type when uploading + some code style
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 1b1d0bf4b..9da449d54 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -645,12 +645,17 @@ function rcmail_compose_attachment_list($attrib)
$button = Q(rcube_label('delete'));
foreach ($_SESSION['compose']['attachments'] as $id => $a_prop)
+ {
+ if (empty($a_prop))
+ continue;
+
$out .= html::tag('li', array('id' => "rcmfile".$id),
html::a(array(
'href' => "#delete",
'title' => rcube_label('delete'),
'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%d', this)", JS_OBJECT_NAME, $id)),
$button) . Q($a_prop['name']));
+ }
}
$OUTPUT->add_gui_object('attachmentlist', $attrib['id']);