From b04d1537cea49c0a45f78ab9436596ca8c7921dc Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Mon, 6 Mar 2006 17:02:27 +0000 Subject: [PATCH] Don't display counts for boxes that can't be selected. Also fixes bug of not displaying message count when no unread messages are found, but the count of all folders is desired. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10891 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default_advanced/left_main.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default_advanced/left_main.tpl b/templates/default_advanced/left_main.tpl index a9bed7a6..e3d8e9f2 100644 --- a/templates/default_advanced/left_main.tpl +++ b/templates/default_advanced/left_main.tpl @@ -122,7 +122,7 @@ function buildMailboxTree ($box, $settings, $parent_node=-1) { $box['CummulativeUnreadCount'] : $box['UnreadCount']; - if ($unseen > 0) { + if (!$box['IsNoSelect'] && ($unseen > 0 || $settings['unreadNotificationDisplayTotal'])) { $unseen_str = $unseen; // Add the total messages if desired -- 2.25.1