diff --git a/com.woltlab.wcf/templates/attachments.tpl b/com.woltlab.wcf/templates/attachments.tpl index 5034f73fe37..9c76cb29d7c 100644 --- a/com.woltlab.wcf/templates/attachments.tpl +++ b/com.woltlab.wcf/templates/attachments.tpl @@ -1,14 +1,17 @@ -{if $attachmentList && $attachmentList->getGroupedObjects($objectID)|count} +{if !$attachments|isset && $attachmentList && $attachmentList->getGroupedObjects($objectID)|count} + {assign var='attachments' value=$attachmentList->getGroupedObjects($objectID)} +{/if} +{if !$attachments|empty} {hascontent}

{lang}wcf.attachment.images{/lang}