diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index d1780c1f6e8..22470bd4c81 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -247,20 +247,20 @@ if (empty($reshook)) { $error=0; - $datepaye = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')); + $datepaye = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int')); // Clean parameters amount if payment is for a credit note - if (GETPOST('type') == FactureFournisseur::TYPE_CREDIT_NOTE) + if (GETPOST('type', 'int') == FactureFournisseur::TYPE_CREDIT_NOTE) { foreach ($amounts as $key => $value) // How payment is dispatch { - $newvalue = price2num($value,'MT'); + $newvalue = price2num($value, 'MT'); $amounts[$key] = -$newvalue; } foreach ($multicurrency_amounts as $key => $value) // How payment is dispatch { - $newvalue = price2num($value,'MT'); + $newvalue = price2num($value, 'MT'); $multicurrency_amounts[$key] = -$newvalue; } }