diff options
author | thomascube <thomas@roundcube.net> | 2008-02-11 22:39:29 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-02-11 22:39:29 +0000 |
commit | 29bee0a4ac17218f4ac892deaf3396ab9e24d307 (patch) | |
tree | e5af4e9730ec304e16242027430f47972c7bfdd4 | |
parent | b85bf8b3f46b9927117777baa149eb4ac818693f (diff) |
Bring back missing download link for attachments
-rw-r--r-- | program/steps/mail/func.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index dc71b8917..2563ec26b 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1204,12 +1204,11 @@ function rcmail_message_part_controls() if (!is_array($MESSAGE) || !is_array($MESSAGE['parts']) || !($_GET['_uid'] && $_GET['_part']) || !$MESSAGE['parts'][$part]) return ''; - $part = &$MESSAGE['parts'][$part]; - + $part = $MESSAGE['parts'][$part]; $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'cellspacing', 'cellpadding', 'border', 'summary')); $out = '<table '. $attrib_str . ">\n"; - if ($filename) + if ($part->filename) { $out .= sprintf('<tr><td class="title">%s</td><td>%s</td><td>[<a href="./?%s">%s</a>]</tr>'."\n", Q(rcube_label('filename')), |