mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Fix array bug.
This commit is contained in:
@@ -114,7 +114,9 @@ class AccountController extends Controller
|
||||
$accountId = (int) $accountId;
|
||||
// loop each expense entry (each entry can be a different currency).
|
||||
foreach ($expenses as $currencyCode => $endAmount) {
|
||||
|
||||
if(3 !== strlen($currencyCode)) {
|
||||
continue;
|
||||
}
|
||||
// see if there is an accompanying start amount.
|
||||
// grab the difference and find the currency.
|
||||
$startAmount = (string) ($startBalances[$accountId][$currencyCode] ?? '0');
|
||||
@@ -514,6 +516,9 @@ class AccountController extends Controller
|
||||
$accountId = (int) $accountId;
|
||||
// loop each expense entry (each entry can be a different currency).
|
||||
foreach ($expenses as $currencyCode => $endAmount) {
|
||||
if(3 !== strlen($currencyCode)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// see if there is an accompanying start amount.
|
||||
// grab the difference and find the currency.
|
||||
|
Reference in New Issue
Block a user