diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index adaaf4fdaa..acc37b57ca 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -39,8 +39,13 @@ class HomeController extends BaseController // get the preference for the home accounts to show: $frontpage = $this->_preferences->get('frontpageAccounts', []); + if($frontpage->data == []) { + $accounts = $this->_accounts->getActiveDefault(); + } else { + $accounts = $this->_accounts->getByIds($frontpage->data); + } + - $accounts = $this->_accounts->getByIds($frontpage->data); $transactions = []; foreach($accounts as $account) {