Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Catch possible NULL
James Coleb5c5f67fccc1
diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.phpindex 11069ba57a..ef2f8bd2f9 100644--- a/app/Http/Controllers/AccountController.php+++ b/app/Http/Controllers/AccountController.php@@ -151,6 +151,8 @@ class AccountController extends Controller*/public function index(ARI $repository, string $what){+ $what = $what ?? 'asset';+$subTitle = trans('firefly.' . $what . '_accounts');$subTitleIcon = Config::get('firefly.subIconsByIdentifier.' . $what);$types = Config::get('firefly.accountTypesByIdentifier.' . $what);