projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0a2e26
)
Catch bad dates.
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 9 Dec 2008 16:54:53 +0000
(09:54 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 9 Dec 2008 16:54:53 +0000
(09:54 -0700)
imp/lib/UI/Mailbox.php
patch
|
blob
|
history
diff --git
a/imp/lib/UI/Mailbox.php
b/imp/lib/UI/Mailbox.php
index
b34b071
..
114449b
100644
(file)
--- 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']) ||