]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Wups, $poster could be undefined
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 9 Jan 2016 12:15:09 +0000 (13:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 9 Jan 2016 12:15:09 +0000 (13:15 +0100)
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,