From 7bbd5f64744a5eba869ee01d15e3a425b73e4f60 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 2 Mar 2007 17:42:04 +0000 Subject: Show localized text for missing subjects (closes #1484243) --- program/steps/mail/func.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'program/steps/mail') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index ec257b69b..606c977a0 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -450,6 +450,7 @@ function rcmail_message_list($attrib) else if ($col=='subject') { $cont = Q($IMAP->decode_header($header->$col)); + if (!$cont) $cont = Q(rcube_label('nosubject')); // firefox/mozilla temporary workaround to pad subject with content so that whitespace in rows responds to drag+drop $cont .= ''; } @@ -535,7 +536,10 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE) if ($col=='from' || $col=='to') $cont = Q(rcmail_address_string($header->$col, 3), 'show'); else if ($col=='subject') + { $cont = Q($IMAP->decode_header($header->$col)); + if (!$cont) $cont = Q(rcube_label('nosubject')); + } else if ($col=='size') $cont = show_bytes($header->$col); else if ($col=='date') -- cgit v1.2.3