Skip to content

Commit

Permalink
Fix the condition for product type based shipping calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Henkenjohann authored and richardhj committed Sep 12, 2018
1 parent 938064d commit c64e0e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getPrice(IsotopeProductCollection $objCollection = null)
$allowedTypes = deserialize($this->product_types);
$productType = $objItem->getProduct()->getType();

if (is_array($allowedTypes) || !in_array($productType->id, $allowedTypes, false)) {
if (\is_array($allowedTypes) && !\in_array($productType->id, $allowedTypes, false)) {
continue;
}
}
Expand Down

0 comments on commit c64e0e4

Please sign in to comment.