From 07e622a7f818f39e541df103fd37a471bee5c5ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 30 Mar 2016 14:04:22 +0200 Subject: [PATCH] Introduce () to have code cleaner --- htdocs/product/class/product.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index f8cb45a8b38..28855e89855 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -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; -- GitLab