summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-07-27 12:18:40 -0400
committerJames Walker <walkah@walkah.net>2010-07-27 12:18:40 -0400
commit772018810b7b6ea2b8cf18a1b9275fbac8c78343 (patch)
treedf788d098e5f982322c36d7c2954ac41f9b21fda /lib/noticelist.php
parent7065450f03078fb1ac2105b75f9c7a4e052bca9c (diff)
parent65862d8f7f45d487d4714137af96d3a24e4ca386 (diff)
Merge branch 'master' into testing
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index e23cf3b6d..17adf3a49 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -96,8 +96,14 @@ class NoticeList extends Widget
break;
}
- $item = $this->newListItem($this->notice);
- $item->show();
+ try {
+ $item = $this->newListItem($this->notice);
+ $item->show();
+ } catch (Exception $e) {
+ // we log exceptions and continue
+ common_log(LOG_ERR, $e->getMessage());
+ continue;
+ }
}
$this->out->elementEnd('ol');