Skip to content

Commit cdb1c00

Browse files
authored
Update DefaultCurrency.php
Fixed: Something went wrong while saving this configuration: Warning: in_array() expects parameter 2 to be array, string given in /opt/vaimo/deploy/x7642/2017-01-09_13-38-36/htdocs/vendor/magento/module-config/Model/Config/Backend/Currency/DefaultCurrency.php on line 30
1 parent 2c1997d commit cdb1c00

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(), $this->_getAllowedCurrencies())) {
30+
if (!in_array($this->getValue(), (array)$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)