diff --git a/library/includes/torrent_show_dl_list.php b/library/includes/torrent_show_dl_list.php index dc12c4db..271e8be9 100644 --- a/library/includes/torrent_show_dl_list.php +++ b/library/includes/torrent_show_dl_list.php @@ -81,6 +81,7 @@ if ($show_dl_list) } } + $dl_count_mode_cnt = 0; foreach ($dl_status_css as $i => $desc) { if ($dl_cat[$i] && !$count_mode) @@ -102,12 +103,17 @@ if ($show_dl_list) { continue; } + else + { + $dl_count_mode_cnt++; + } $template->assign_block_vars('dl_counts.count_row', array( 'DL_OPTION_NAME' => $lang[strtoupper($desc)], 'DL_OPTION_USERS' => $dl_count[$i], )); } } + $template->assign_vars(array('HIDE_DL_COUNT_EMPTY' => (bool)($count_mode && $dl_count_mode_cnt == 0))); } else { diff --git a/styles/templates/default/viewtopic_torrent.tpl b/styles/templates/default/viewtopic_torrent.tpl index bdb51da2..ae16e405 100644 --- a/styles/templates/default/viewtopic_torrent.tpl +++ b/styles/templates/default/viewtopic_torrent.tpl @@ -26,6 +26,7 @@ $(document).ready(function(){ + @@ -40,6 +41,7 @@ $(document).ready(function(){ +