Skip to content

Commit 31474c5

Browse files
committed
MAGETWO-69383: Site is down when scopes are not shared anymore through app/etc/config.php
1 parent a7b3356 commit 31474c5

File tree

1 file changed

+5
-4
lines changed
  • app/code/Magento/Deploy/Console/Command/App/ConfigImport

1 file changed

+5
-4
lines changed

app/code/Magento/Deploy/Console/Command/App/ConfigImport/Processor.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,11 @@ public function execute(InputInterface $input, OutputInterface $output)
164164
private function validateSectionData($section, array $data)
165165
{
166166
$validator = $this->configImporterPool->getValidator($section);
167-
if (null !== $validator
168-
&& $messages = $validator->validate($data)
169-
) {
170-
throw new ValidatorException(__(implode(PHP_EOL, $messages)));
167+
if (null !== $validator) {
168+
$messages = $validator->validate($data);
169+
if (!empty($messages)) {
170+
throw new ValidatorException(__(implode(PHP_EOL, $messages)));
171+
}
171172
}
172173
}
173174
}

0 commit comments

Comments
 (0)