mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
This PHP7 thing is strict!
This commit is contained in:
@@ -97,7 +97,7 @@ class BudgetLine
|
||||
*/
|
||||
public function getRepetition(): LimitRepetition
|
||||
{
|
||||
return $this->repetition;
|
||||
return $this->repetition ?? new LimitRepetition;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -26,12 +26,12 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if budgetLine.getRepetition %}
|
||||
{% if budgetLine.getRepetition.id %}
|
||||
<a href="{{ route('budgets.show', [budgetLine.getBudget.id, budgetLine.getRepetition.id]) }}">{{ budgetLine.getRepetition.startdate.formatLocalized(monthAndDayFormat) }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if budgetLine.getRepetition %}
|
||||
{% if budgetLine.getRepetition.id %}
|
||||
{{ budgetLine.getRepetition.amount|formatAmount }}
|
||||
{% else %}
|
||||
{{ 0|formatAmount }}
|
||||
|
Reference in New Issue
Block a user