mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Bugfix: array_filter preserves keys, so $filteredAccounts[0] might not exist
This commit is contained in:
parent
88083c5b38
commit
306e1081e3
@ -73,7 +73,7 @@ class FinTS
|
||||
if (count($filteredAccounts) != 1) {
|
||||
throw new FireflyException("Cannot find account with number " . $accountNumber);
|
||||
}
|
||||
return $filteredAccounts[0];
|
||||
return reset($filteredAccounts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user