diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 4865d18ab70..ec831b91458 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1677,7 +1677,7 @@ class Product extends CommonObject return -1; } - if ($newprice != '' || $newprice == 0) + if ($newprice !== '' || $newprice === 0) { if ($newpricebase == 'TTC') { @@ -1703,8 +1703,8 @@ class Product extends CommonObject $price_ttc = ( $newnpr != 1 ) ? price2num($newprice) * (1 + ($newvat / 100)) : $price; $price_ttc = price2num($price_ttc,'MU'); - if ($newminprice != '' || $newminprice == 0) - { + if ( $newminprice !== '' || $newminprice === 0) + { $price_min = price2num($newminprice,'MU'); $price_min_ttc = price2num($newminprice) * (1 + ($newvat / 100)); $price_min_ttc = price2num($price_min_ttc,'MU'); diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 3101d44ecf5..84f3b7fa91c 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -346,12 +346,12 @@ if (! empty($id) || ! empty($ref)) foreach ($prodattr_all as $each) { $prodattr_alljson[$each->id] = $each; } - + ?>