Skip to content

Commit

Permalink
Merge pull request #567 from afoucret/fix-empty-status
Browse files Browse the repository at this point in the history
Fix empty children status.
  • Loading branch information
afoucret authored Oct 17, 2017
2 parents 56a29a7 + efc2ac8 commit 2456db1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function addData($storeId, array $indexData)
$childrenIndexData = $this->addAttributeData($storeId, $allChildrenIds);

foreach ($childrenIndexData as $childrenId => $childrenData) {
$enabled = current($childrenData['status']) == 1;
$enabled = isset($childrenData['status']) && current($childrenData['status']) == 1;
if ($enabled === false) {
unset($childrenIndexData[$childrenId]);
}
Expand Down

0 comments on commit 2456db1

Please sign in to comment.