Cleanup in preparation of an overhaul.

This commit is contained in:
James Cole
2015-01-14 12:24:08 +01:00
parent 18f46676fd
commit 9eec6641dd
20 changed files with 337 additions and 310 deletions

View File

@@ -88,7 +88,7 @@ class GoogleChartController extends BaseController
/** @var \FireflyIII\Database\Account\Account $acct */
$acct = App::make('FireflyIII\Database\Account\Account');
$accounts = count($pref->data) > 0 ? $acct->getByIds($pref->data) : $acct->getAssetAccounts();
$accounts = count($pref->data) > 0 ? $acct->getByIds($pref->data) : $acct->getAccountsByType(['Default account', 'Asset account']);
/** @var Account $account */
foreach ($accounts as $account) {