mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Fix nullpointer.
This commit is contained in:
@@ -197,7 +197,7 @@ class PreferencesController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// optional fields for transactions:
|
// optional fields for transactions:
|
||||||
$setOptions = $request->get('tj');
|
$setOptions = $request->get('tj') ?? [];
|
||||||
$optionalTj = [
|
$optionalTj = [
|
||||||
'interest_date' => array_key_exists('interest_date', $setOptions),
|
'interest_date' => array_key_exists('interest_date', $setOptions),
|
||||||
'book_date' => array_key_exists('book_date', $setOptions),
|
'book_date' => array_key_exists('book_date', $setOptions),
|
||||||
|
Reference in New Issue
Block a user