Added showing releaser stats in profile (#1568)

* Added showing releaser stats in profile

* Update viewprofile.php

* Update usercp_viewprofile.tpl

* Update CHANGELOG.md

* Update viewprofile.php
This commit is contained in:
Roman Kelesidis 2024-08-03 13:08:27 +07:00 committed by GitHub
commit 7f746af5d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 26 deletions

View file

@ -75,9 +75,8 @@ if (bf($profiledata['user_opt'], 'user_opt', 'dis_sig')) {
}
// Null ratio
if ($bb_cfg['ratio_null_enabled']) {
$btu = get_bt_userdata($profiledata['user_id']);
$template->assign_vars(array('NULLED_RATIO' => (bool)$btu['ratio_nulled']));
if ($bb_cfg['ratio_null_enabled'] && $btu = get_bt_userdata($profiledata['user_id'])) {
$template->assign_vars(array('NULLED_RATIO' => $btu['ratio_nulled']));
}
// Ban information