Fix PHP 8.3 array_key_exists null fatal in game monitor

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9fb7c34b-5560-4acf-99ee-3c0cf49e2473

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-28 13:51:54 +00:00 committed by GitHub
parent 50ebc92a6a
commit 0f975350ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,9 @@ require_once('includes/lib_remote.php');
function renderParam($param, $last_param, $param_access_enabled, $home_id)
{
global $db;
if (!is_array($last_param)) {
$last_param = [];
}
$isAdmin = $db->isAdmin($_SESSION['user_id']);
$attributesString = "";
foreach ($param->attribute as $attribute)