Update torrent_show_dl_list.php

This commit is contained in:
Roman Kelesidis 2024-01-28 10:28:14 +07:00
parent 86d8df8c74
commit 380ea02bfb

View File

@ -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) foreach ($dl_status_css as $i => $desc)
{ {
if ($i == DL_STATUS_RELEASER) 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))); $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) elseif ($bb_cfg['bt_show_dl_list_buttons'] && $have_dl_buttons_enabled)