From: Matthias Schmidt Date: Sun, 1 Mar 2015 18:20:08 +0000 (+0100) Subject: Fix smiley tab if default category is empty (2) X-Git-Tag: 2.1.1~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=33f6414d9f43ccf6132176f8ecc5ab9e4e6707c7;p=GitHub%2FWoltLab%2FWCF.git Fix smiley tab if default category is empty (2) --- diff --git a/com.woltlab.wcf/templates/messageFormSmilies.tpl b/com.woltlab.wcf/templates/messageFormSmilies.tpl index 1490dee605..56f254a3ad 100644 --- a/com.woltlab.wcf/templates/messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/messageFormSmilies.tpl @@ -10,7 +10,11 @@
{capture assign=__defaultSmilies} {assign var='__firstSmileyCategory' value=$smileyCategories|reset} - {include file='__messageFormSmilies' smilies=$__wcf->getSmileyCache()->getCategorySmilies($__firstSmileyCategory->categoryID)} + {if $__firstSmileyCategory->categoryID} + {include file='__messageFormSmilies' smilies=$__wcf->getSmileyCache()->getCategorySmilies($__firstSmileyCategory->categoryID)} + {else} + {include file='__messageFormSmilies' smilies=$__wcf->getSmileyCache()->getCategorySmilies()} + {/if} {/capture} {if $__tabCount > 1}