Skip to content

Commit 19e13eb

Browse files
ENGCOM-2740: Fix possible undefined index when caching config data #13649
- Merge Pull Request #13649 from mimarcel/magento2:fix/undefined-index-when-caching-config-data - Merged commits: 1. 208abdd
2 parents 08b8956 + 208abdd commit 19e13eb

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)