Skip to content

Commit 1727c7e

Browse files
authored
Update Allow.php
1 parent cdb1c00 commit 1727c7e

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Config/Model/Config/Backend/Currency

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
public function afterSave()
5252
{
5353
$exceptions = [];
54-
foreach ((array)$this->_getAllowedCurrencies() as $currencyCode) {
54+
foreach ($this->_getAllowedCurrencies() as $currencyCode) {
5555
if (!in_array($currencyCode, $this->_getInstalledCurrencies())) {
5656
$exceptions[] = __(
5757
'Selected allowed currency "%1" is not available in installed currencies.',
@@ -60,7 +60,7 @@ public function afterSave()
6060
}
6161
}
6262

63-
if (!in_array($this->_getCurrencyDefault(), (array)$this->_getAllowedCurrencies())) {
63+
if (!in_array($this->_getCurrencyDefault(), $this->_getAllowedCurrencies())) {
6464
$exceptions[] = __(
6565
'Default display currency "%1" is not available in allowed currencies.',
6666
$this->_localeCurrency->getCurrency($this->_getCurrencyDefault())->getName()

0 commit comments

Comments
 (0)