X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fattachmentlistitem.php;h=de1087d44cb75f360df589ecd4abfe8ed9566207;hb=0a4eeb89dab241779147c8c02a8f5f0f83533309;hp=fe11dbe639141b631e8539f17d227b2a26fbdfdc;hpb=ec98fd0c438f5b8f8e5eeee893ad84f121b7249f;p=quix0rs-gnu-social.git diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index fe11dbe639..de1087d44c 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -81,7 +81,12 @@ class AttachmentListItem extends Widget function show() { $this->showStart(); - $this->showNoticeAttachment(); + try { + $this->showNoticeAttachment(); + } catch (Exception $e) { + $this->element('div', ['class'=>'error'], $e->getMessage()); + common_debug($e->getMessage()); + } $this->showEnd(); }