Skip to content

Commit 4c69a22

Browse files
ENGCOM-949: [Backport 2.1-develop] Update Store getConfig() to respect valid false return value #13654
- Merge Pull Request #13654 from JeroenVanLeusden/magento2:patch-9 - Merged commits: 1. 73ca354
2 parents 00d657a + 73ca354 commit 4c69a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Store/Model/Store.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ public function setName($name)
531531
public function getConfig($path)
532532
{
533533
$data = $this->_config->getValue($path, ScopeInterface::SCOPE_STORE, $this->getCode());
534-
if (!$data) {
535-
$data = $this->_config->getValue($path, ScopeConfigInterface::SCOPE_TYPE_DEFAULT);
534+
if ($data === null) {
535+
$data = $this->_config->getValue($path);
536536
}
537537
return $data === false ? null : $data;
538538
}

0 commit comments

Comments
 (0)