From f6285e7daf843bc6333d86ea2ed5d0f31baffd1e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Mar 2019 23:19:34 +0100 Subject: [PATCH] Fix phpcs --- htdocs/fourn/facture/paiement.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } }