Skip to content

Commit 36b4878

Browse files
ENGCOM-2754: [Forwardport] Fix possible undefined index when caching config data #17551
- Merge Pull Request #17551 from mage2pratik/magento2:2.3-develop-PR-port-13649 - Merged commits: 1. df54a26
2 parents 1cb9235 + df54a26 commit 36b4878

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)