mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
This PHP7 thing is strict!
This commit is contained in:
@@ -33,7 +33,7 @@ class BudgetLine
|
||||
*/
|
||||
public function getBudget(): BudgetModel
|
||||
{
|
||||
return $this->budget;
|
||||
return $this->budget ?? new BudgetModel;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user