Kaynağa Gözat

fix for display of empty date

teepe 23 yıl önce
ebeveyn
işleme
7926f832ba
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      functions/mailbox_display.php

+ 5 - 1
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,