mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix #9914
This commit is contained in:
@@ -400,9 +400,19 @@ trait ConvertsDataTypes
|
||||
if (!is_array($entry)) {
|
||||
continue;
|
||||
}
|
||||
$amount = null;
|
||||
if(array_key_exists('current_amount',$entry)) {
|
||||
$amount = $this->clearString((string) ($entry['current_amount'] ?? '0'));
|
||||
if(null === $entry['current_amount']) {
|
||||
$amount = null;
|
||||
}
|
||||
}
|
||||
if(!array_key_exists('current_amount',$entry)) {
|
||||
$amount = null;
|
||||
}
|
||||
$return[] = [
|
||||
'account_id' => $this->integerFromValue((string) ($entry['account_id'] ?? '0')),
|
||||
'current_amount' => $this->clearString((string) ($entry['current_amount'] ?? '0')),
|
||||
'current_amount' => $amount,
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user