Wups, $poster could be undefined

This commit is contained in:
Mikael Nordfeldth 2016-01-09 13:15:09 +01:00
parent 33194b3cff
commit d13483ca20

View File

@ -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,