From 143fe2a71f8d8f2873bd0f79ca421e00f91dd5c3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 1 Mar 2019 17:56:52 +0100 Subject: [PATCH] Fix #2125 --- app/Support/Amount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();