From d13483ca204de9467dbf8cfc7c9e40dc4551a091 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 9 Jan 2016 13:15:09 +0100 Subject: [PATCH] Wups, $poster could be undefined --- lib/attachmentlistitem.php | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.39.5