mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +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) {
|
if (count($filteredAccounts) != 1) {
|
||||||
throw new FireflyException("Cannot find account with number " . $accountNumber);
|
throw new FireflyException("Cannot find account with number " . $accountNumber);
|
||||||
}
|
}
|
||||||
return $filteredAccounts[0];
|
return reset($filteredAccounts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user