Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix for issue with null amounts.
James Cole88f1adf65054
diff --git a/app/Support/Http/Controllers/PeriodOverview.php b/app/Support/Http/Controllers/PeriodOverview.phpindex 24b6006e8b..8fbabcde6c 100644--- a/app/Support/Http/Controllers/PeriodOverview.php+++ b/app/Support/Http/Controllers/PeriodOverview.php@@ -575,8 +575,7 @@ trait PeriodOverview$return[$currencyId]['amount'] = bcadd($return[$currencyId]['amount'], $journal['amount'] ?? '0');$return[$currencyId]['count']++;-- if (null !== $foreignCurrencyId) {+ if (null !== $foreignCurrencyId && null !== $journal['foreign_amount']) {if (!isset($return[$foreignCurrencyId])) {$return[$foreignCurrencyId] = ['amount' => '0',