From: Mikael Nordfeldth Date: Fri, 1 Jan 2016 23:09:10 +0000 (+0100) Subject: Avoid exception for invalid URL aborting rendering for parent notice if it fails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf6e06a5dd8bffccce58c7f16119c79fdeff25e4;p=quix0rs-gnu-social.git Avoid exception for invalid URL aborting rendering for parent notice if it fails --- diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index 52dcbc1f67..a440c4dd62 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -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');