Fix bunq import "Undefined index: apply_rules"

When using the bunq import and unchecking "apply rules" gave an error. Same as https://github.com/firefly-iii/firefly-iii/issues/1538
This commit is contained in:
Mathieu Post 2018-09-22 13:31:09 +02:00
parent ec072cee23
commit 0556433ce4

View File

@ -79,7 +79,7 @@ class ChooseAccountsHandler implements BunqJobConfigurationInterface
$config = $this->repository->getConfiguration($this->importJob);
$accounts = $config['accounts'] ?? [];
$mapping = $data['account_mapping'] ?? [];
$applyRules = 1 === (int)$data['apply_rules'];
$applyRules = 1 === (int)($data['apply_rules'] ?? 0);
$final = [];
/*