mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Updated
This commit is contained in:
parent
0c15aaec17
commit
9f05e49d01
2 changed files with 2 additions and 5 deletions
|
@ -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'] : '',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue