From: Mikael Nordfeldth Date: Sat, 9 Jan 2016 12:15:09 +0000 (+0100) Subject: Wups, $poster could be undefined X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d13483ca204de9467dbf8cfc7c9e40dc4551a091;p=quix0rs-gnu-social.git Wups, $poster could be undefined --- diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index 655ae73300..2d484fb6a8 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -146,6 +146,8 @@ class AttachmentListItem extends Widget if ($thumb instanceof File_thumbnail) { $poster = $thumb->getUrl(); unset($thumb); // there's no need carrying this along after this + } else { + $poster = null; } $this->out->elementStart($mediatype,