Skip to content

Commit 0f104a7

Browse files
committed
Fixed undefined array key warning in Mage_Catalog_Model_Resource_Category_Flat (#3047)
1 parent b9ac46c commit 0f104a7

File tree

1 file changed

+3
-1
lines changed
  • app/code/core/Mage/Catalog/Model/Resource/Category

1 file changed

+3
-1
lines changed

app/code/core/Mage/Catalog/Model/Resource/Category/Flat.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,9 @@ protected function _getAttributeValues($entityIds, $store_id)
839839
];
840840
foreach ($attributesType as $type) {
841841
foreach ($this->_getAttributeTypeValues($type, $entityIds, $store_id) as $row) {
842-
$values[$row['entity_id']][$attributes[$row['attribute_id']]['attribute_code']] = $row['value'];
842+
if (isset($attributes[$row['attribute_id']])) {
843+
$values[$row['entity_id']][$attributes[$row['attribute_id']]['attribute_code']] = $row['value'];
844+
}
843845
}
844846
}
845847
return $values;

0 commit comments

Comments
 (0)