From dc54e738af57d64f5b46253ddba0c860882b4982 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 25 Aug 2014 18:17:37 +0200 Subject: [PATCH] Fix check of $attachmentHandler object in messageFormTabs.tpl --- com.woltlab.wcf/templates/messageFormTabs.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 + -- 2.20.1