Fixed home transaction-list [skip ci]

This commit is contained in:
James Cole
2014-07-21 07:40:38 +02:00
parent 7ffb936aba
commit 2d77481ff5

View File

@@ -39,8 +39,13 @@ class HomeController extends BaseController
// get the preference for the home accounts to show: // get the preference for the home accounts to show:
$frontpage = $this->_preferences->get('frontpageAccounts', []); $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 = []; $transactions = [];
foreach($accounts as $account) { foreach($accounts as $account) {