mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Some code cleanup.
This commit is contained in:
@@ -131,9 +131,8 @@ class PiggyBankController extends Controller
|
||||
/*
|
||||
* Flash some data to fill the form.
|
||||
*/
|
||||
if (!is_null($piggyBank->targetdate) || !$piggyBank->targetdate == '') {
|
||||
$targetDate = new Carbon($piggyBank->targetdate);
|
||||
$targetDate = $targetDate->format('Y-m-d');
|
||||
if (!is_null($piggyBank->targetdate)) {
|
||||
$targetDate = $piggyBank->targetdate->format('Y-m-d');
|
||||
}
|
||||
|
||||
$preFilled = ['name' => $piggyBank->name,
|
||||
|
||||
Reference in New Issue
Block a user