From a3580ca61f153cba7177540d34ccac51e7dbc719 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Mon, 22 Jan 2024 12:48:17 +0100 Subject: [PATCH] Check if `user.conversation.maxConversations` 0 and set it to `1` --- templates/conversationList.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/conversationList.tpl b/templates/conversationList.tpl index 8a3d928..63493a0 100644 --- a/templates/conversationList.tpl +++ b/templates/conversationList.tpl @@ -116,6 +116,9 @@
{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} {#$conversationCountValue} % -- 2.20.1