Skip to content

Commit

Permalink
Fixed undefined array key in Mage/Eav/Model/Config.php (#4059)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
  • Loading branch information
kiatng and sreichel authored Jul 2, 2024
1 parent 433796a commit 55612f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/core/Mage/Eav/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ public function getEntityAttributeCodes($entityType, $object = null)
}
return $attributeCodes;
} else {
return array_keys($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()]);
return isset($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()])
? array_keys($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()])
: [];
}
}

Expand Down

0 comments on commit 55612f1

Please sign in to comment.