Commit 83c112e2 authored by mmn's avatar mmn

Handle lack of parent nicely

parent 306df3dc
......@@ -154,7 +154,11 @@ class NoticeListItem extends Widget
if (!empty($this->notice->reply_to) || count($this->getProfileAddressees()) > 0) {
$this->elementStart('div', array('class' => 'parents'));
if (!empty($this->notice->reply_to)) { $this->showParent(); }
try {
$this->showParent();
} catch (NoParentNoticeException $e) {
// no parent notice
}
if ($this->addressees) { $this->showAddressees(); }
$this->elementEnd('div');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment