Some fixes for #1378

This commit is contained in:
James Cole
2018-04-25 16:01:51 +02:00
parent 2e1a777811
commit 490c817fc1
3 changed files with 12 additions and 2 deletions

View File

@@ -798,6 +798,7 @@ class BunqRoutine implements RoutineInterface
$mapping = $config['accounts-mapped'];
$token = new SessionToken($config['session_token']);
$count = 0;
$all = [];
if (0 === $user->getId()) {
$user = new UserCompany($config['user_company']);
Log::debug(sprintf('Will try to get transactions for company #%d', $user->getId()));
@@ -826,7 +827,7 @@ class BunqRoutine implements RoutineInterface
'import_id' => $importId,
'payments' => $payments,
];
$count += count($payments);
$count += \count($payments);
}
Log::debug(sprintf('Total number of payments: %d', $count));
$this->addStep();