Catch messages with no date header
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 7 Apr 2010 13:59:58 +0000 (07:59 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 7 Apr 2010 13:59:58 +0000 (07:59 -0600)
imp/lib/Ui/Mailbox.php

index c36c196..f3f290e 100644 (file)
@@ -199,6 +199,10 @@ class IMP_Ui_Mailbox
      */
     public function getDate($date)
     {
+        if (empty($date)) {
+            return _("Unknown Date");
+        }
+
         if (!isset($this->_cache['today_start'])) {
             $this->_cache['today_start'] = strtotime('today');
             $this->_cache['today_end'] = strtotime('today + 1 day');