From 2ea1254c6b89dd575c67616bcc2c17b4d7a8a7be Mon Sep 17 00:00:00 2001 From: thibdrev Date: Sat, 20 Jan 2024 21:46:38 +0100 Subject: [PATCH] qual: phpstn htdocs/loan/card.php 135 Property Loan::$fk_bank (int) does not accept array|string. htdocs/loan/card.php 143 Property Loan::$fk_project (int) does not accept array|string. --- htdocs/loan/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php index 3a19d530054..b9f5f672bc2 100644 --- a/htdocs/loan/card.php +++ b/htdocs/loan/card.php @@ -132,7 +132,7 @@ if (empty($reshook)) { if (!$error) { $object->label = GETPOST('label'); - $object->fk_bank = GETPOST('accountid'); + $object->fk_bank = GETPOSTINT('accountid'); $object->capital = $capital; $object->datestart = $datestart; $object->dateend = $dateend; @@ -140,7 +140,7 @@ if (empty($reshook)) { $object->rate = $rate; $object->note_private = GETPOST('note_private', 'restricthtml'); $object->note_public = GETPOST('note_public', 'restricthtml'); - $object->fk_project = GETPOST('projectid', 'int'); + $object->fk_project = GETPOSTINT('projectid'); $object->insurance_amount = GETPOST('insurance_amount', 'int'); $accountancy_account_capital = GETPOST('accountancy_account_capital');