mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-21 16:38:36 -06:00
Update BillUpdateService.php
Catch nullpointers Signed-off-by: James Cole <james@firefly-iii.org>
This commit is contained in:
parent
deb58e617d
commit
068094caac
@ -159,11 +159,11 @@ class BillUpdateService
|
||||
}
|
||||
if (array_key_exists('end_date', $data)) {
|
||||
$bill->end_date = $data['end_date'];
|
||||
$bill->end_date_tz = $data['end_date']->format('e');
|
||||
$bill->end_date_tz = $data['end_date']?->format('e');
|
||||
}
|
||||
if (array_key_exists('extension_date', $data)) {
|
||||
$bill->extension_date = $data['extension_date'];
|
||||
$bill->extension_date_tz = $data['extension_date']->format('e');
|
||||
$bill->extension_date_tz = $data['extension_date']?->format('e');
|
||||
}
|
||||
|
||||
$bill->match = 'EMPTY';
|
||||
|
Loading…
Reference in New Issue
Block a user