From 9f05e49d0160ded7c0a13ec01f309e73ed742422 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 20 Aug 2025 13:04:23 +0300 Subject: [PATCH] Updated --- library/includes/ucp/viewprofile.php | 2 +- viewtopic.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/library/includes/ucp/viewprofile.php b/library/includes/ucp/viewprofile.php index 7dbc44541..7f97dc118 100644 --- a/library/includes/ucp/viewprofile.php +++ b/library/includes/ucp/viewprofile.php @@ -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'] : '', ]); } diff --git a/viewtopic.php b/viewtopic.php index 0ed14fd11..529b25d4a 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -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')) {