Skip to content

Commit fbbbe96

Browse files
committed
Merge remote-tracking branch 'origin/MC-36113' into 2.4-develop-pr36
2 parents 5a86f4b + cb2be53 commit fbbbe96

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/code/Magento/Store/Model/Config/Processor/Fallback.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,18 @@ private function getWebsiteConfig(array $websites, $id)
178178
*/
179179
private function loadScopes(): void
180180
{
181-
$loaded = false;
182181
try {
183182
if ($this->deploymentConfig->isDbAvailable()) {
184183
$this->storeData = $this->storeResource->readAllStores();
185184
$this->websiteData = $this->websiteResource->readAllWebsites();
186-
$loaded = true;
185+
} else {
186+
$this->storeData = $this->scopes->get('stores');
187+
$this->websiteData = $this->scopes->get('websites');
187188
}
188189
} catch (TableNotFoundException $exception) {
189190
// database is empty or not setup
190-
$loaded = false;
191-
}
192-
if (!$loaded) {
193-
$this->storeData = $this->scopes->get('stores');
194-
$this->websiteData = $this->scopes->get('websites');
191+
$this->storeData = [];
192+
$this->websiteData = [];
195193
}
196194
}
197195
}

0 commit comments

Comments
 (0)