mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update edit_user_profile.php
This commit is contained in:
parent
77e7d7d81d
commit
4f6d510a8c
@ -154,10 +154,9 @@ switch ($field)
|
||||
break;
|
||||
|
||||
case 'user_points':
|
||||
$value = htmlCHR($value);
|
||||
$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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user