Fix array.

This commit is contained in:
James Cole 2015-12-30 09:30:06 +01:00
parent 2904baf44e
commit 08703e282f

View File

@ -266,9 +266,10 @@ class AccountRepository implements AccountRepositoryInterface
*/
public function getPiggyBankAccounts()
{
$start = clone Session::get('start', new Carbon);
$end = clone Session::get('end', new Carbon);
$ids = DB::table('piggy_banks')->distinct()->get(['piggy_banks.account_id'])->pluck('account_id')->toArray();
$start = clone Session::get('start', new Carbon);
$end = clone Session::get('end', new Carbon);
$collection = new Collection(DB::table('piggy_banks')->distinct()->get(['piggy_banks.account_id']));
$ids = $collection->pluck('account_id')->toArray();
$accounts = new Collection;
$cache = new CacheProperties;