Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix empty title.
James Colef674df44225e
diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.phpindex 15b91f1d13..b95db6f8a6 100644--- a/routes/breadcrumbs.php+++ b/routes/breadcrumbs.php@@ -81,13 +81,14 @@ Breadcrumbs::register($breadcrumbs->parent('accounts.index', $what);$breadcrumbs->push($account->name, route('accounts.show', [$account->id]));-- $title = trans(- 'firefly.between_dates_breadcrumb',- ['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',- 'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]- );- $breadcrumbs->push($title, route('accounts.show', $account));+ if (!is_null($start) && !is_null($end)) {+ $title = trans(+ 'firefly.between_dates_breadcrumb',+ ['start' => $start ? $start->formatLocalized(strval(trans('config.month_and_day'))) : '',+ 'end' => $end ? $end->formatLocalized(strval(trans('config.month_and_day'))) : '',]+ );+ $breadcrumbs->push($title, route('accounts.show', $account));+ }});