add brackets in cast variable
This commit is contained in:
parent
8ae32dd865
commit
b2804f0982
1 changed files with 1 additions and 1 deletions
|
|
@ -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])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue