Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix possible null pointer [skip ci]
James Cole59213ed60513
diff --git a/app/Http/Controllers/BudgetController.php b/app/Http/Controllers/BudgetController.phpindex d31bec7c5e..34e6ff5ef3 100644--- a/app/Http/Controllers/BudgetController.php+++ b/app/Http/Controllers/BudgetController.php@@ -590,7 +590,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');+ $sum = $set->sum('transaction_amount') ?? '0';$journals = $set->count();$dateStr = $end->format('Y-m-d');$dateName = Navigation::periodShow($end, $range);