Skip to content

Commit d122d30

Browse files
author
Stanislav Idolov
authored
ENGCOM-2740: Fix possible undefined index when caching config data #13649
2 parents 08b8956 + 19e13eb commit d122d30

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)