This commit is contained in:
Roman Kelesidis 2024-01-27 22:49:21 +07:00
parent 587799a438
commit 7d87a6f57a
2 changed files with 8 additions and 0 deletions

View File

@ -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
{

View File

@ -26,6 +26,7 @@ $(document).ready(function(){
<!-- END users_row -->
<!-- END dl_users -->
<!-- IF not HIDE_DL_COUNT_EMPTY -->
<!-- BEGIN dl_counts -->
<tr>
<td colspan="2">
@ -40,6 +41,7 @@ $(document).ready(function(){
</td>
</tr>
<!-- END dl_counts -->
<!-- ENDIF -->
<!-- IF SHOW_DL_LIST_TOR_INFO -->
<tr>