From 30e8a4a925222cd9309acb0e3a232c11bc0966ac Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 25 Jul 2008 15:13:15 +0000 Subject: Prefer File_Info over mime_content_type + detect mime type when uploading + some code style git-svn-id: https://svn.roundcube.net/trunk@1610 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/compose.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roundcubemail/program/steps/mail/compose.inc') diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 1b1d0bf4b..9da449d54 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/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']); -- cgit v1.2.3