Skip to content

Commit f2304f2

Browse files
authored
Update DefaultCurrency.php
1 parent 1727c7e commit f2304f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Model/Config/Backend/Currency/DefaultCurrency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function afterSave()
2727
);
2828
}
2929

30-
if (!in_array($this->getValue(), (array)$this->_getAllowedCurrencies())) {
30+
if (!in_array($this->getValue(), $this->_getAllowedCurrencies())) {
3131
throw new \Magento\Framework\Exception\LocalizedException(
3232
__('Sorry, the default display currency you selected is not available in allowed currencies.')
3333
);

0 commit comments

Comments
 (0)