From 53d9fbc5f4e70e0fd5ad58ab01a43431b6792e1c Mon Sep 17 00:00:00 2001 From: teepe Date: Tue, 15 Oct 2002 11:29:26 +0000 Subject: [PATCH] fix for display of empty date git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3858 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 08909f47..ac27b49d 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -161,8 +161,12 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox, $hlt_color ); break; case 3: /* date */ + $date_string = $msg['DATE_STRING'] . ''; + if ($date_string == '') { + $date_string = _("Unknown date"); + } echo html_tag( 'td', - $bold . $flag . $fontstr . $msg['DATE_STRING'] . + $bold . $flag . $fontstr . $date_string . $fontstr_end . $flag_end . $bold_end, 'center', $hlt_color, -- 2.25.1