add brackets in cast variable

This commit is contained in:
Lamrani Abdel 2024-03-15 12:58:03 +01:00
parent 8ae32dd865
commit b2804f0982

View file

@ -292,7 +292,7 @@ if (empty($reshook)) {
$newlocaltax2_type = GETPOST('localtax2_type', 'array');
//Shall we generate prices using price rules?
$object->price_autogen = (int) GETPOST('usePriceRules') == 'on';
$object->price_autogen = (int) (GETPOST('usePriceRules') == 'on');
for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++) {
if (!isset($newprice[$i])) {