Introduce () to have code cleaner

This commit is contained in:
Laurent Destailleur 2016-03-30 14:04:22 +02:00
parent db7fcffbd8
commit 07e622a7f8

View File

@ -4124,8 +4124,8 @@ class Product extends CommonObject
}
//Little check to make sure the price is modified before triggering generation
$check_amount = $price == $this->multiprices[$i] && ($price_min == $this->multiprices_min[$i]);
$check_type = $baseprice == $this->multiprices_base_type[$i];
$check_amount = (($price == $this->multiprices[$i]) && ($price_min == $this->multiprices_min[$i]));
$check_type = ($baseprice == $this->multiprices_base_type[$i]);
if ($check_amount && $check_type) {
continue;