From eaa8d9346e6df799cbe4e87a7b4103d7932946b2 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 29 Jan 2026 20:44:28 +0100 Subject: [PATCH] Fix migration 49.php when there is no session --- system/migrations/49.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/migrations/49.php b/system/migrations/49.php index 1cc57c05..fc78ac27 100644 --- a/system/migrations/49.php +++ b/system/migrations/49.php @@ -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'],