This commit is contained in:
Roman Kelesidis 2025-08-20 13:04:23 +03:00
commit 9f05e49d01
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4
2 changed files with 2 additions and 5 deletions

View file

@ -83,7 +83,7 @@ if ($bb_cfg['ratio_null_enabled'] && $btu = get_bt_userdata($profiledata['user_i
if ($banInfo = getBanInfo((int)$profiledata['user_id'])) {
$template->assign_block_vars('ban', [
'IS_BANNED' => true,
'BAN_REASON' => $banInfo['ban_reason']
'BAN_REASON' => IS_ADMIN ? $banInfo['ban_reason'] : '',
]);
}

View file

@ -738,10 +738,7 @@ for ($i = 0; $i < $total_posts; $i++) {
// Ban information
if ($banInfo = getBanInfo((int)$poster_id)) {
$template->assign_block_vars('postrow.ban', [
'IS_BANNED' => true,
'BAN_REASON' => $banInfo['ban_reason']
]);
$template->assign_block_vars('postrow.ban', ['IS_BANNED' => true]);
}
if (isset($postrow[$i]['post_attachment']) && $is_auth['auth_download'] && function_exists('display_post_attachments')) {