Avoid exception for invalid URL aborting rendering for parent notice if it fails

This commit is contained in:
Mikael Nordfeldth 2016-01-02 00:09:10 +01:00
parent 0dfafe2567
commit cf6e06a5dd
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ class NoticeListItem extends Widget
$this->showParent();
} catch (NoParentNoticeException $e) {
// no parent notice
} catch (InvalidUrlException $e) {
// parent had an invalid URL so we can't show it
}
if ($this->addressees) { $this->showAddressees(); }
$this->elementEnd('div');