Skip to content

Commit 840d5b2

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #13649: Fix possible undefined index when caching config data (by @mimarcel)
2 parents 08b8956 + d122d30 commit 840d5b2

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)