From: Michael M Slusarz Date: Tue, 9 Dec 2008 16:54:53 +0000 (-0700) Subject: Catch bad dates. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=63c200d2f4291dbd88e77f098b2146362bf7630d;p=horde.git Catch bad dates. --- diff --git a/imp/lib/UI/Mailbox.php b/imp/lib/UI/Mailbox.php index b34b07131..114449bc4 100644 --- a/imp/lib/UI/Mailbox.php +++ b/imp/lib/UI/Mailbox.php @@ -201,7 +201,11 @@ class IMP_UI_Mailbox $this->_cache['today_end'] = strtotime('today + 1 day'); } - $d = new DateTime($date); + try { + $d = new DateTime($date); + } catch (Exception $e) { + return _("Unknown Date"); + } $udate = $d->format('U'); if (($udate < $this->_cache['today_start']) ||