Minor improvements (#1263)

This commit is contained in:
Roman Kelesidis 2023-12-26 17:48:28 +07:00 committed by GitHub
commit b16ee57faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 7 deletions

View file

@ -75,7 +75,7 @@ if (bf($profiledata['user_opt'], 'user_opt', 'dis_sig')) {
}
// Ban information
if ($banInfo = getUserBanInfo($profiledata['user_id'])) {
if ($banInfo = getUserBanInfo((int)$profiledata['user_id'])) {
$template->assign_block_vars('ban', [
'IS_BANNED' => true,
'BAN_REASON' => $banInfo['ban_reason']