Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix null pointer [skip ci]
James Cole343eb3a768f8
diff --git a/app/Http/Controllers/BudgetController.php b/app/Http/Controllers/BudgetController.phpindex 019d95a7f3..0350973a73 100644--- a/app/Http/Controllers/BudgetController.php+++ b/app/Http/Controllers/BudgetController.php@@ -603,7 +603,7 @@ class BudgetController extends Controller$collector = app(JournalCollectorInterface::class);$collector->setAllAssetAccounts()->setRange($end, $currentEnd)->withoutBudget()->withOpposingAccount()->setTypes([TransactionType::WITHDRAWAL]);$set = $collector->getJournals();- $sum = $set->sum('transaction_amount') ?? '0';+ $sum = strval($set->sum('transaction_amount') ?? '0');$journals = $set->count();$dateStr = $end->format('Y-m-d');$dateName = Navigation::periodShow($end, $range);