From 2d77481ff53848f346552c1a5f6b0af6bbd8ed04 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 21 Jul 2014 07:40:38 +0200 Subject: [PATCH] Fixed home transaction-list [skip ci] --- app/controllers/HomeController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {