Skip to content

Firefly III: a personal finances manager

Fix #2125

James Cole143fe2a71f8d
diff --git a/app/Support/Amount.php b/app/Support/Amount.php
index 3ffd96aaf4..9f9789aa14 100644
--- a/app/Support/Amount.php
+++ b/app/Support/Amount.php
@@ -246,7 +246,7 @@ class Amount
// could still be json encoded:
if (\strlen($currencyCode) > 3) {
- $currencyCode = null === json_decode($currencyCode) ? 'EUR' : $currencyCode;
+ $currencyCode = json_decode($currencyCode) ?? 'EUR';
}
$currency = TransactionCurrency::where('code', $currencyCode)->first();