Skip to content

Commit

Permalink
Introduce () to have code cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 30, 2016
1 parent db7fcff commit 07e622a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/class/product.class.php
Expand Up @@ -4124,8 +4124,8 @@ public function generateMultiprices(User $user, $baseprice, $price_type, $price_
}

//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;
Expand Down

0 comments on commit 07e622a

Please sign in to comment.