add purge link when folder contains subfolders.
[squirrelmail.git] / templates / default / left_main.tpl
index 9fb938ab2fbcebd1500a8cde7e0f88dc1b209d11..becdde505993192b5c9149350ddb47a9e98f193a 100644 (file)
@@ -188,7 +188,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
         $end .= '</a>';
 
         // Print unread info
-        if ($box['MessageCount'] > 0) {
+        if ($box['MessageCount'] > 0 || count($box['ChildBoxes'])) {
             if (!empty($unseen_str)) {
                 $end .= '&nbsp;<small>('.$unseen_str.')</small>';
             }