File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Config/Model/Config/Backend/Currency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function __construct(
51
51
public function afterSave ()
52
52
{
53
53
$ exceptions = [];
54
- foreach ($ this ->_getAllowedCurrencies () as $ currencyCode ) {
54
+ foreach (( array ) $ this ->_getAllowedCurrencies () as $ currencyCode ) {
55
55
if (!in_array ($ currencyCode , $ this ->_getInstalledCurrencies ())) {
56
56
$ exceptions [] = __ (
57
57
'Selected allowed currency "%1" is not available in installed currencies. ' ,
@@ -60,7 +60,7 @@ public function afterSave()
60
60
}
61
61
}
62
62
63
- if (!in_array ($ this ->_getCurrencyDefault (), $ this ->_getAllowedCurrencies ())) {
63
+ if (!in_array ($ this ->_getCurrencyDefault (), ( array ) $ this ->_getAllowedCurrencies ())) {
64
64
$ exceptions [] = __ (
65
65
'Default display currency "%1" is not available in allowed currencies. ' ,
66
66
$ this ->_localeCurrency ->getCurrency ($ this ->_getCurrencyDefault ())->getName ()
You can’t perform that action at this time.
0 commit comments