Skip to content

Commit 72cb244

Browse files
author
al.kravchuk
committed
magento/magento2#?: 'Allowed Countries' - get countries for scope 'default'.
- fix 'if' for scope with id 0.
1 parent 78ca274 commit 72cb244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Directory/Model/AllowedCountries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getAllowedCountries(
5555
$scope = ScopeInterface::SCOPE_WEBSITE,
5656
$scopeCode = null
5757
) {
58-
if (empty($scopeCode)) {
58+
if ($scopeCode === null) {
5959
$scopeCode = $this->getDefaultScopeCode($scope);
6060
}
6161

0 commit comments

Comments
 (0)