Fix migration 49.php when there is no session

This commit is contained in:
slawkens
2026-01-29 20:44:28 +01:00
parent 3e2d4d6686
commit eaa8d9346e

View File

@@ -17,7 +17,7 @@ function insert_sample_if_not_exist($p): void
$player->setData([
'name' => $p['name'],
'group_id' => 1,
'account_id' => getSession('account'),
'account_id' => getSession('account') ?? 1,
'level' => $p['level'],
'vocation' => $p['vocation_id'],
'health' => $p['health'],