Skip to content

Commit

Permalink
Merge pull request #10118 from TheCartpenter:patch-542
Browse files Browse the repository at this point in the history
Added space on IF statement - admin/model/localisation/currency.php file
  • Loading branch information
eka7a committed Sep 20, 2021
2 parents a7bcbdd + f18aa78 commit fe060e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/model/localisation/currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function refresh($force = false) {
$value = utf8_substr($line[$i], 11, 6);

if ((float)$value < 1 && isset($line[$i + 1])) {
if((float)utf8_substr($line[$i + 1], 11, 6) > 0) {
if ((float)utf8_substr($line[$i + 1], 11, 6) > 0) {
$value = (1 / (float)utf8_substr($line[$i + 1], 11, 6));
} else {
$value = 0;
Expand All @@ -160,4 +160,4 @@ public function getTotalCurrencies() {

return $query->row['total'];
}
}
}

0 comments on commit fe060e1

Please sign in to comment.