From: Matthias Schmidt Date: Mon, 25 Aug 2014 16:17:37 +0000 (+0200) Subject: Fix check of $attachmentHandler object in messageFormTabs.tpl X-Git-Tag: 2.1.0_Alpha_1~409^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc54e738af57d64f5b46253ddba0c860882b4982;p=GitHub%2FWoltLab%2FWCF.git Fix check of $attachmentHandler object in messageFormTabs.tpl --- diff --git a/com.woltlab.wcf/templates/messageFormTabs.tpl b/com.woltlab.wcf/templates/messageFormTabs.tpl index 55c915680d..c77c8ff767 100644 --- a/com.woltlab.wcf/templates/messageFormTabs.tpl +++ b/com.woltlab.wcf/templates/messageFormTabs.tpl @@ -2,7 +2,7 @@ {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}{include file='messageFormSmilies'}{/if} - {if MODULE_ATTACHMENT && $attachmentHandler !== null && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if} + {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if} {include file='messageFormSettings'} {include file='__messageFormPoll'} @@ -24,4 +24,4 @@ $('.messageTabMenu').messageTabMenu(); }); //]]> - \ No newline at end of file +