]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlistitem.php
Wups, $poster could be undefined
[quix0rs-gnu-social.git] / lib / attachmentlistitem.php
index 655ae733005a29f89ff01b23c19a558513208aa1..2d484fb6a8e1de797c572305edec477a850d2d6d 100644 (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,