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