Skip to content

Commit 8498a20

Browse files
author
Igor Melnikov
committed
Merge remote-tracking branch 'origin/MAGETWO-52867-404' into pr
2 parents 049fe78 + 9cd9de3 commit 8498a20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/App/Bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ public function isDeveloperMode()
409409
$mode = $this->server[State::PARAM_MODE];
410410
} else {
411411
$deploymentConfig = $this->getObjectManager()->get(DeploymentConfig::class);
412-
if (($configMode = $deploymentConfig->get(State::PARAM_MODE)) !== null) {
412+
$configMode = $deploymentConfig->get(State::PARAM_MODE);
413+
if ($configMode) {
413414
$mode = $configMode;
414415
}
415416
}

0 commit comments

Comments
 (0)