Skip to content

Commit d5198e2

Browse files
author
Stanislav Idolov
authored
ENGCOM-949: [Backport 2.1-develop] Update Store getConfig() to respect valid false return value #13654
2 parents 4dfef9f + 4c69a22 commit d5198e2

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)