mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Catch potential nullpointers
This commit is contained in:
@@ -236,12 +236,12 @@ class AccountBalanceCalculator
|
||||
'balance' => '0',
|
||||
'transaction_currency_id' => $currencyId,
|
||||
'date' => $balance[1],
|
||||
'date_tz' => $balance[1]->format('e'),
|
||||
'date_tz' => $balance[1]?->format('e'),
|
||||
]
|
||||
);
|
||||
$object->balance = $balance[0];
|
||||
$object->date = $balance[1];
|
||||
$object->date_tz = $balance[1]->format('e');
|
||||
$object->date_tz = $balance[1]?->format('e');
|
||||
$object->save();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user