function show()
{
$attachments = $this->notice->attachments();
- $representable = false;
foreach ($attachments as $key=>$att) {
- // Only show attachments representable with a title
- if ($att->getTitle() === null) {
+ // Remove attachments which are not representable with neither a title nor thumbnail
+ if ($att->getTitle() === null && !$att->hasThumbnail()) {
unset($attachments[$key]);
}
}