Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.1-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #13654: [Backport 2.1-develop] Update Store getConfig() to respect valid false return value (by @JeroenVanLeusden)
  • Loading branch information
magento-engcom-team authored Mar 20, 2018
2 parents 4dfef9f + d5198e2 commit ca240ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Store/Model/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ public function setName($name)
public function getConfig($path)
{
$data = $this->_config->getValue($path, ScopeInterface::SCOPE_STORE, $this->getCode());
if (!$data) {
$data = $this->_config->getValue($path, ScopeConfigInterface::SCOPE_TYPE_DEFAULT);
if ($data === null) {
$data = $this->_config->getValue($path);
}
return $data === false ? null : $data;
}
Expand Down

0 comments on commit ca240ab

Please sign in to comment.