File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Directory/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function scheduledUpdateCurrencyRates()
128
128
$ importWarnings [] = __ ('FATAL ERROR: ' ) . ' ' . __ ('Please specify the correct Import Service. ' );
129
129
}
130
130
131
- if (sizeof ($ errors ) > 0 ) {
131
+ if (count ($ errors ) > 0 ) {
132
132
foreach ($ errors as $ error ) {
133
133
$ importWarnings [] = __ ('WARNING: ' ) . ' ' . $ error ;
134
134
}
@@ -138,7 +138,7 @@ public function scheduledUpdateCurrencyRates()
138
138
self ::XML_PATH_ERROR_RECIPIENT ,
139
139
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
140
140
);
141
- if (sizeof ($ importWarnings ) == 0 ) {
141
+ if (count ($ importWarnings ) == 0 ) {
142
142
$ this ->_currencyFactory ->create ()->saveRates ($ rates );
143
143
} elseif ($ errorRecipient ) {
144
144
//if $errorRecipient is not set, there is no sense send email to nobody
You can’t perform that action at this time.
0 commit comments