Skip to content

Commit

Permalink
Fixed undefined array key warning in Mage_Catalog_Model_Resource_Cate…
Browse files Browse the repository at this point in the history
…gory_Flat (#3047)
  • Loading branch information
fballiano committed Mar 2, 2023
1 parent b9ac46c commit 0f104a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/core/Mage/Catalog/Model/Resource/Category/Flat.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,9 @@ protected function _getAttributeValues($entityIds, $store_id)
];
foreach ($attributesType as $type) {
foreach ($this->_getAttributeTypeValues($type, $entityIds, $store_id) as $row) {
$values[$row['entity_id']][$attributes[$row['attribute_id']]['attribute_code']] = $row['value'];
if (isset($attributes[$row['attribute_id']])) {
$values[$row['entity_id']][$attributes[$row['attribute_id']]['attribute_code']] = $row['value'];
}
}
}
return $values;
Expand Down

0 comments on commit 0f104a7

Please sign in to comment.