forked from GNUsocial/gnu-social
Wups, $poster could be undefined
This commit is contained in:
parent
33194b3cff
commit
d13483ca20
@ -146,6 +146,8 @@ class AttachmentListItem extends Widget
|
|||||||
if ($thumb instanceof File_thumbnail) {
|
if ($thumb instanceof File_thumbnail) {
|
||||||
$poster = $thumb->getUrl();
|
$poster = $thumb->getUrl();
|
||||||
unset($thumb); // there's no need carrying this along after this
|
unset($thumb); // there's no need carrying this along after this
|
||||||
|
} else {
|
||||||
|
$poster = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->out->elementStart($mediatype,
|
$this->out->elementStart($mediatype,
|
||||||
|
Loading…
Reference in New Issue
Block a user