creating first phpdoc block
[squirrelmail.git] / templates / default / left_main.tpl
index 43e26a8a6d9bbd9b8ede84c6dbe863ec2c10b3ea..9fb938ab2fbcebd1500a8cde7e0f88dc1b209d11 100644 (file)
@@ -73,7 +73,7 @@
  * @author Steve Brown
  */
 
-// include required files
+/** include required files */
 include_once(SM_PATH . 'templates/util_global.php');
 
 /*
@@ -103,7 +103,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
                             $box['CummulativeUnreadCount'] :
                             $box['UnreadCount'];
             
-            if ($unseen > 0) {
+            if (!$box['IsNoSelect'] && ($unseen > 0 || $settings['unreadNotificationDisplayTotal'])) {
                 $unseen_str = $unseen;
     
                 // Add the total messages if desired
@@ -188,7 +188,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
         $end .= '</a>';
 
         // Print unread info
-        if ($box['UnreadCount'] > 0) {
+        if ($box['MessageCount'] > 0) {
             if (!empty($unseen_str)) {
                 $end .= '&nbsp;<small>('.$unseen_str.')</small>';
             }
@@ -273,8 +273,8 @@ extract($t);
    </table>
    <br />
    <?php echo buildMailboxTree($mailboxes, $settings); ?>
-  </tr>
- </td>
-</table>   
+  </td>
+ </tr>
+</table>
 <?php do_hook('left_main_after'); ?>
-</div>
\ No newline at end of file
+</div>