Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Improve code, a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
elfeffe authored Sep 21, 2019
1 parent bff262d commit d16dd4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getVariations($usedProductAttributes)
for ($attributeIndex = $attributesCount; $attributeIndex--;) {
$currentAttribute = $variationalAttributes[$attributeIndex];
$currentVariationValue = $currentVariation[$attributeIndex];
if(isset($currentAttribute['id']) && $currentAttribute['id']) {
if(!empty($currentAttribute['id'])) {
$filledVariation[$currentAttribute['id']] = $currentAttribute['values'][$currentVariationValue];
}
}
Expand Down

0 comments on commit d16dd4c

Please sign in to comment.