From 38970fb3acee8bc6bdc578c91673d661fa94f28a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 10 Jul 2007 12:57:45 +0000 Subject: [PATCH] fixed not show attachments in forwarded mails without subject (apple clients) --- felamimail/inc/class.uidisplay.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/felamimail/inc/class.uidisplay.inc.php b/felamimail/inc/class.uidisplay.inc.php index da0000210e..955ee90dd8 100644 --- a/felamimail/inc/class.uidisplay.inc.php +++ b/felamimail/inc/class.uidisplay.inc.php @@ -448,10 +448,12 @@ $this->t->set_var('size',lang('size')); $this->t->set_var('url_img_save',$GLOBALS['egw']->html->image('felamimail','fileexport', lang('save'))); #$this->t->parse('attachment_rows','attachment_row_bold',True); + foreach ($attachments as $key => $value) { $this->t->set_var('row_color',$this->rowColor[($key+1)%2]); - $this->t->set_var('filename',@htmlentities($value['name'], ENT_QUOTES, $this->displayCharset)); + $this->t->set_var('filename',$value['name'] ? @htmlentities($value['name'], ENT_QUOTES, $this->displayCharset) : + lang('(no subject)')); $this->t->set_var('mimetype',$value['mimeType']); $this->t->set_var('size',$value['size']); $this->t->set_var('attachment_number',$key);