mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-29 01:13:08 +00:00
Bugfix: array_filter preserves keys, so $filteredAccounts[0] might not exist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user