Shouldn't display unseen count when it's 0 me thinks.
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 16 Jul 2003 04:57:00 +0000 (04:57 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 16 Jul 2003 04:57:00 +0000 (04:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5320 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index f6165b9..3f0e2d1 100644 (file)
@@ -301,8 +301,8 @@ function listBoxes ($boxes, $j=0 ) {
         /* get unseen/total messages information */
         if ($boxes->unseen !== false || $boxes->total !== false) {
             $unseen = $boxes->unseen;
-            $unseen_string = "($unseen)";
-            if ($unseen>0||$boxes->total>0) {
+            if ($unseen>0 && $boxes->total>0) {
+                $unseen_string = "($unseen)";
                 $unseen_found = TRUE;
             }
             $unseen_before = '<font color="' . $color[11] . '">';
@@ -418,8 +418,10 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) {
     /* get unseen/total messages information */
     if ($boxes->unseen !== false) {
         $unseen = $boxes->unseen;
-        $unseen_string = "($unseen)";
-        if ($unseen>0) $unseen_found = TRUE;
+        if ($unseen>0) {
+            $unseen_found = TRUE;
+            $unseen_string = "($unseen)";
+        }
         if ($boxes->total) {
             $numMessages = $boxes->total;
             $unseen_string = "<font color=\"$color[11]\">($unseen/$numMessages)</font>";