]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlistitem.php
Last type-hint is an array, added.
[quix0rs-gnu-social.git] / lib / attachmentlistitem.php
index 655ae733005a29f89ff01b23c19a558513208aa1..1f2a925b0c057366bae815c64a4e28e1f3df4d38 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,
@@ -215,7 +217,7 @@ class AttachmentListItem extends Widget
             $scripts[] = $script;
         }
         foreach ($scripts as $script) {
-            common_log(LOG_DEBUG, $script->textContent);
+            common_debug($script->textContent);
             $script->parentNode->removeChild($script);
         }