Skip to content

Commit

Permalink
'int' for $rate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dolibarr95 committed Jul 13, 2017
1 parent dec1ae8 commit c36c240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/admin/multicurrency.php
Expand Up @@ -81,7 +81,7 @@
$langs->loadCacheCurrencies('');

$code = GETPOST('code', 'alpha');
$rate = GETPOST('rate', 'alpha');
$rate = GETPOST('rate', 'int');
$currency = new MultiCurrency($db);
$currency->code = $code;
$currency->name = !empty($langs->cache_currencies[$code]['label']) ? $langs->cache_currencies[$code]['label'].' ('.$langs->getCurrencySymbol($code).')' : $code;
Expand All @@ -100,7 +100,7 @@
if ($submit == $langs->trans('Modify'))
{
$fk_multicurrency = GETPOST('fk_multicurrency', 'int');
$rate = GETPOST('rate', 'float');
$rate = GETPOST('rate', 'int');
$currency = new MultiCurrency($db);

if ($currency->fetch($fk_multicurrency) > 0)
Expand Down

0 comments on commit c36c240

Please sign in to comment.