Catch possible NULL

This commit is contained in:
James Cole 2016-03-18 10:53:59 +01:00
parent 0f17423465
commit b5c5f67fcc

View File

@ -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);