Skip to content

Commit

Permalink
Prevent exceptions with non existing array keys DivanteLtd#7
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirPlastovets committed Sep 17, 2018
1 parent 4318dea commit 332ee31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function indexAction()
$productDTO['configurable_options'] = [];

foreach ($productAttributeOptions as $productAttribute) {
if (!$productDTO[$productAttribute['attribute_code'] . '_options']) {
if (!isset($productDTO[$productAttribute['attribute_code'] . '_options'])) {
$productDTO[$productAttribute['attribute_code'] . '_options'] = [];
}

Expand Down

0 comments on commit 332ee31

Please sign in to comment.