Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #11063
James Cole00ba2a46d2bb
diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.phpindex caa114007b..6fec7eadda 100644--- a/app/Support/Http/Controllers/PeriodOverview.php+++ b/app/Support/Http/Controllers/PeriodOverview.php@@ -634,10 +634,10 @@ trait PeriodOverview$currencySymbol = $journal['currency_symbol'];$currencyDecimalPlaces = $journal['currency_decimal_places'];$foreignCurrencyId = $journal['foreign_currency_id'];- $amount = $journal['amount'] ?? '0';+ $amount = (string) ($journal['amount'] ?? '0');if ($this->convertToPrimary && $currencyId !== $this->primaryCurrency->id && $foreignCurrencyId !== $this->primaryCurrency->id) {- $amount = $journal['pc_amount'] ?? '0';+ $amount = (string) ($journal['pc_amount'] ?? '0');$currencyId = $this->primaryCurrency->id;$currencyCode = $this->primaryCurrency->code;$currencyName = $this->primaryCurrency->name;@@ -650,7 +650,7 @@ trait PeriodOverview$currencyName = $journal['foreign_currency_name'];$currencySymbol = $journal['foreign_currency_symbol'];$currencyDecimalPlaces = $journal['foreign_currency_decimal_places'];- $amount = $journal['foreign_amount'] ?? '0';+ $amount = (string) ($journal['foreign_amount'] ?? '0');}$return[$currencyId] ??= ['amount' => '0',