From: Evan Prodromou Date: Tue, 13 Jul 2010 14:59:01 +0000 (-0400) Subject: handle missing profile for notices better in NoticeList X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d706a3e21ba88afc9e7a19652aa19eb4e8c54cd2;p=quix0rs-gnu-social.git handle missing profile for notices better in NoticeList --- diff --git a/lib/noticelist.php b/lib/noticelist.php index e23cf3b6d5..17adf3a49c 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');