From 0f975350efe563481ddc7254b3f7a7dd648ee75b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 13:51:54 +0000 Subject: [PATCH] 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> --- modules/gamemanager/server_monitor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gamemanager/server_monitor.php b/modules/gamemanager/server_monitor.php index d1f3d10c..2bd7a2eb 100644 --- a/modules/gamemanager/server_monitor.php +++ b/modules/gamemanager/server_monitor.php @@ -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)