1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/9687] Improve labeling in acp for user bans

PHPBB3-9687
This commit is contained in:
Marc Alexander
2023-08-06 13:59:23 +02:00
parent d7389809aa
commit 54bb32bba5
5 changed files with 78 additions and 4 deletions

View File

@@ -3168,7 +3168,7 @@ function display_ban_options($mode)
{
$banned_options[] = [
'value' => $ban_row['ban_id'],
'label' => $ban_row['ban_item'],
'label' => $ban_row['label'] ?? $ban_row['ban_item'],
];
$time_length = ($ban_row['ban_end']) ? ($ban_row['ban_end'] - $ban_row['ban_start']) / 60 : 0;