Merge branch '6.0'
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / templates / conversationList.tpl
index 268c1ebfb483c056d6bf5f4bb93879eb42d74367..ef9593e25abcb63ff13e063637d74ebf154a2611 100644 (file)
                <div class="boxContent">
                        {assign var='conversationCount' value=$__wcf->getConversationHandler()->getConversationCount()}
                        {assign var='maxConversationCount' value=$__wcf->session->getPermission('user.conversation.maxConversations')}
+                       {if $maxConversationCount == 0}
+                               {assign var='maxConversationCount' value=1}
+                       {/if}
                        {assign var='conversationCountValue' value=$conversationCount/$maxConversationCount*100}
                        <meter class="conversationQuotaMeter" min="0" max="100" low="90" high="99" value="{$conversationCountValue|ceil}" aria-label="{lang}wcf.conversation.quota{/lang}">
                                {#$conversationCountValue}&nbsp;%