Skip to content

Commit 9f7fcb9

Browse files
ENGCOM-614: [Port 2.3-develop] Update Store getConfig() to respect valid false return value #13655
- Merge Pull Request #13655 from JeroenVanLeusden/magento2:patch-10 - Merged commits: 1. 4700853
2 parents 87e96d3 + 4700853 commit 9f7fcb9

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
@@ -535,8 +535,8 @@ public function setName($name)
535535
public function getConfig($path)
536536
{
537537
$data = $this->_config->getValue($path, ScopeInterface::SCOPE_STORE, $this->getCode());
538-
if (!$data) {
539-
$data = $this->_config->getValue($path, ScopeConfigInterface::SCOPE_TYPE_DEFAULT);
538+
if ($data === null) {
539+
$data = $this->_config->getValue($path);
540540
}
541541
return $data === false ? null : $data;
542542
}

0 commit comments

Comments
 (0)