Merge pull request #27697 from thibdrev/patch-8

qual: phpstan
This commit is contained in:
Laurent Destailleur 2024-01-21 17:20:44 +01:00 committed by GitHub
commit 1dae2f165b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -575,7 +575,7 @@ if (empty($reshook)) {
// Set barcode_type_xxx from barcode_type id
$stdobject = new GenericObject($db);
$stdobject->element = 'product';
$stdobject->barcode_type = GETPOST('fk_barcode_type');
$stdobject->barcode_type = GETPOSTINT('fk_barcode_type');
$result = $stdobject->fetch_barcode();
if ($result < 0) {
$error++;
@ -817,7 +817,7 @@ if (empty($reshook)) {
// Set barcode_type_xxx from barcode_type id
$stdobject = new GenericObject($db);
$stdobject->element = 'product';
$stdobject->barcode_type = GETPOST('fk_barcode_type');
$stdobject->barcode_type = GETPOSTINT('fk_barcode_type');
$result = $stdobject->fetch_barcode();
if ($result < 0) {
$error++;