Check if `user.conversation.maxConversations` 0 and set it to `1`
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 22 Jan 2024 11:48:17 +0000 (12:48 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 22 Jan 2024 11:48:17 +0000 (12:48 +0100)
templates/conversationList.tpl

index 8a3d928c7c446eb726b41ccd5f350a35da53d5f7..63493a009114ba9445285cae2590976be9acd110 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;%