From f2ae196fabc8b3f6270685dad4ce0a8f8f40182f Mon Sep 17 00:00:00 2001 From: jangliss Date: Wed, 16 Jul 2003 14:30:18 +0000 Subject: [PATCH] Apparently my fix for hiding the unread count of 0 when in certain modes made the count disappear completely. This should work better :) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5322 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index 3f0e2d1d..cdb23354 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -301,7 +301,7 @@ function listBoxes ($boxes, $j=0 ) { /* get unseen/total messages information */ if ($boxes->unseen !== false || $boxes->total !== false) { $unseen = $boxes->unseen; - if ($unseen>0 && $boxes->total>0) { + if ($unseen>0 || $boxes->total>0) { $unseen_string = "($unseen)"; $unseen_found = TRUE; } @@ -375,7 +375,7 @@ function listBoxes ($boxes, $j=0 ) { } /* Print unseen information. */ - if (isset($unseen_found) && $unseen_found) { + if (isset($unseen_found) && $unseen_found && ($unseen > 0)) { $end .= " $unseen_string"; } @@ -441,7 +441,7 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { if ($unseen > 0) { $end .= ''; } /* Print unseen information. */ - if (isset($unseen_found) && $unseen_found) { + if (isset($unseen_found) && $unseen_found && ($unseen > 0)) { $end .= " $unseen_string"; } -- 2.25.1