mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Fixed negative integer seed bonus accrual (#1377)
* Fixed negative integer seed bonus accrual * Update CHANGELOG.md
This commit is contained in:
parent
8abd491d5a
commit
acbe838c23
2 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,7 @@ switch ($field) {
|
|||
case 'user_points':
|
||||
$value = (float)str_replace(',', '.', $this->request['value']);
|
||||
$value = sprintf('%.2f', $value);
|
||||
if (strlen(strstr($value, '.', true)) > 14) {
|
||||
if ($value < 0.0 || strlen(strstr($value, '.', true)) > 14) {
|
||||
$this->ajax_die($lang['WRONG_INPUT']);
|
||||
}
|
||||
$this->response['new_value'] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue