mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Fix null pointer [skip ci]
This commit is contained in:
@@ -125,12 +125,7 @@ class UpgradeDatabase extends Command
|
|||||||
if ($type !== TransactionType::TRANSFER) {
|
if ($type !== TransactionType::TRANSFER) {
|
||||||
$event->transaction_journal_id = null;
|
$event->transaction_journal_id = null;
|
||||||
$event->save();
|
$event->save();
|
||||||
$this->line(
|
$this->line(sprintf('Piggy bank #%d was referenced by an invalid event. This has been fixed.', $event->piggy_bank_id));
|
||||||
sprintf(
|
|
||||||
'Piggy bank #%d ("%s") was referenced by an invalid event. This has been fixed.', $event->piggy_bank_id,
|
|
||||||
$event->piggyBank->name
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user