Skip to content

Commit 55612f1

Browse files
kiatngsreichel
andauthored
Fixed undefined array key in Mage/Eav/Model/Config.php (#4059)
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
1 parent 433796a commit 55612f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/core/Mage/Eav/Model/Config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ public function getEntityAttributeCodes($entityType, $object = null)
571571
}
572572
return $attributeCodes;
573573
} else {
574-
return array_keys($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()]);
574+
return isset($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()])
575+
? array_keys($this->_entityTypeAttributeIdByCode[$storeId][$entityType->getId()])
576+
: [];
575577
}
576578
}
577579

0 commit comments

Comments
 (0)