mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#853)
This commit is contained in:
parent
718da43798
commit
0210000e34
1 changed files with 3 additions and 0 deletions
|
@ -144,6 +144,9 @@ switch ($field) {
|
|||
case 'user_points':
|
||||
$value = (float)str_replace(',', '.', $this->request['value']);
|
||||
$value = sprintf('%.2f', $value);
|
||||
if (strlen(strstr($value, '.', true)) > 14) {
|
||||
$this->ajax_die($lang['WRONG_INPUT']);
|
||||
}
|
||||
$this->response['new_value'] = $value;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue