File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
app/code/Magento/Store/Model/Config/Processor Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -178,20 +178,18 @@ private function getWebsiteConfig(array $websites, $id)
178
178
*/
179
179
private function loadScopes (): void
180
180
{
181
- $ loaded = false ;
182
181
try {
183
182
if ($ this ->deploymentConfig ->isDbAvailable ()) {
184
183
$ this ->storeData = $ this ->storeResource ->readAllStores ();
185
184
$ this ->websiteData = $ this ->websiteResource ->readAllWebsites ();
186
- $ loaded = true ;
185
+ } else {
186
+ $ this ->storeData = $ this ->scopes ->get ('stores ' );
187
+ $ this ->websiteData = $ this ->scopes ->get ('websites ' );
187
188
}
188
189
} catch (TableNotFoundException $ exception ) {
189
190
// 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 = [];
195
193
}
196
194
}
197
195
}
You can’t perform that action at this time.
0 commit comments