* @author Steve Brown
*/
-// include required files
+/** include required files */
include_once(SM_PATH . 'templates/util_global.php');
/*
$box['CummulativeUnreadCount'] :
$box['UnreadCount'];
- if ($unseen > 0) {
+ if (!$box['IsNoSelect'] && ($unseen > 0 || $settings['unreadNotificationDisplayTotal'])) {
$unseen_str = $unseen;
// Add the total messages if desired
$end .= '</a>';
// Print unread info
- if ($box['UnreadCount'] > 0) {
+ if ($box['MessageCount'] > 0 || count($box['ChildBoxes'])) {
if (!empty($unseen_str)) {
$end .= ' <small>('.$unseen_str.')</small>';
}
</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>