diff --git a/library/includes/torrent_show_dl_list.php b/library/includes/torrent_show_dl_list.php index 6d54f2f9..9698b6e6 100644 --- a/library/includes/torrent_show_dl_list.php +++ b/library/includes/torrent_show_dl_list.php @@ -85,7 +85,7 @@ if ($show_dl_list) } } - $dl_count_mode_cnt = 0; + $dl_count_mode_cnt = $dl_completed_count = 0; foreach ($dl_status_css as $i => $desc) { if ($i == DL_STATUS_RELEASER) @@ -121,6 +121,11 @@ if ($show_dl_list) )); } } + // Отображаем "Список скачавших: Нет" если нет ни одного статуса DL_STATUS_COMPLETE + if ($dl_completed_count == 0) + { + $template->assign_block_vars('dl_list_none', array()); + } $template->assign_vars(array('HIDE_DL_COUNT_EMPTY' => (bool)($count_mode && $dl_count_mode_cnt == 0))); } elseif ($bb_cfg['bt_show_dl_list_buttons'] && $have_dl_buttons_enabled)