Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
This PHP7 thing is strict!
James Colec3f78b698dad
diff --git a/app/Helpers/Collection/BudgetLine.php b/app/Helpers/Collection/BudgetLine.phpindex d4a0cfc2c0..97d8ca3579 100644--- a/app/Helpers/Collection/BudgetLine.php+++ b/app/Helpers/Collection/BudgetLine.php@@ -33,7 +33,7 @@ class BudgetLine*/public function getBudget(): BudgetModel{- return $this->budget;+ return $this->budget ?? new BudgetModel;}/**diff --git a/resources/views/reports/partials/budgets.twig b/resources/views/reports/partials/budgets.twigindex aa8c9986e3..dd9bda2461 100644--- a/resources/views/reports/partials/budgets.twig+++ b/resources/views/reports/partials/budgets.twig@@ -19,7 +19,7 @@{% for budgetLine in budgets.getBudgetLines %}<tr><td>- {% if budgetLine.getBudget %}+ {% if budgetLine.getBudget.id %}<a href="{{ route('budgets.show',budgetLine.getBudget.id) }}">{{ budgetLine.getBudget.name }}</a>{% else %}<em>{{ 'noBudget'|_ }}</em>