mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1411)
* Minor improvements * Update CHANGELOG.md * Update edit_user_profile.php * Updated * Update main.php * Update functions.php
This commit is contained in:
parent
22511c3edc
commit
635d715247
5 changed files with 13 additions and 13 deletions
|
@ -130,9 +130,9 @@ switch ($field) {
|
|||
}
|
||||
|
||||
$table = BB_BT_USERS;
|
||||
$value = (float)str_replace(',', '.', $this->request['value']);
|
||||
$value = (int)$this->request['value'];
|
||||
|
||||
if ($value < 0.0) {
|
||||
if ($value < 0) {
|
||||
$this->ajax_die($lang['WRONG_INPUT']);
|
||||
}
|
||||
|
||||
|
@ -142,8 +142,7 @@ switch ($field) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
$value = sprintf('%.0f', $value);
|
||||
$this->response['new_value'] = humn_size($value, null, null, ' ');
|
||||
$this->response['new_value'] = humn_size($value, space: ' ');
|
||||
|
||||
$btu = get_bt_userdata($user_id);
|
||||
$btu[$field] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue