Skip to content

Commit 208abdd

Browse files
committed
🐛 Fix possible undefined index when caching config data
1 parent 6d5cf58 commit 208abdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Config/App/Config/Type/System.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private function cacheData(array $data)
245245
);
246246
$scopes = [];
247247
foreach (['websites', 'stores'] as $curScopeType) {
248-
foreach ($data[$curScopeType] as $curScopeId => $curScopeData) {
248+
foreach ($data[$curScopeType] ?? [] as $curScopeId => $curScopeData) {
249249
$scopes[$curScopeType][$curScopeId] = 1;
250250
$this->cache->save(
251251
$this->serializer->serialize($curScopeData),

0 commit comments

Comments
 (0)