Avoid exception for invalid URL aborting rendering for parent notice if it fails
This commit is contained in:
parent
0dfafe2567
commit
cf6e06a5dd
@ -158,6 +158,8 @@ class NoticeListItem extends Widget
|
|||||||
$this->showParent();
|
$this->showParent();
|
||||||
} catch (NoParentNoticeException $e) {
|
} catch (NoParentNoticeException $e) {
|
||||||
// no parent notice
|
// no parent notice
|
||||||
|
} catch (InvalidUrlException $e) {
|
||||||
|
// parent had an invalid URL so we can't show it
|
||||||
}
|
}
|
||||||
if ($this->addressees) { $this->showAddressees(); }
|
if ($this->addressees) { $this->showAddressees(); }
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user