fix for display of empty date
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 11:29:26 +0000 (11:29 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 11:29:26 +0000 (11:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3858 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index 08909f478983760f322713d8761743ab0c08afeb..ac27b49d6ab7cdd28d51567e5a9e14acf2fc9e62 100644 (file)
@@ -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,