mirror of
https://github.com/slawkens/myaac.git
synced 2026-02-06 13:16:22 +01:00
Fix migration 49.php when there is no session
This commit is contained in:
@@ -17,7 +17,7 @@ function insert_sample_if_not_exist($p): void
|
|||||||
$player->setData([
|
$player->setData([
|
||||||
'name' => $p['name'],
|
'name' => $p['name'],
|
||||||
'group_id' => 1,
|
'group_id' => 1,
|
||||||
'account_id' => getSession('account'),
|
'account_id' => getSession('account') ?? 1,
|
||||||
'level' => $p['level'],
|
'level' => $p['level'],
|
||||||
'vocation' => $p['vocation_id'],
|
'vocation' => $p['vocation_id'],
|
||||||
'health' => $p['health'],
|
'health' => $p['health'],
|
||||||
|
|||||||
Reference in New Issue
Block a user