Merge pull request #68 from GameServerPanel/copilot/fix-array-key-exists-error

Fix PHP 8.3 fatal: array_key_exists() on null $last_param in renderParam()
This commit is contained in:
Frank Harris 2026-04-28 06:53:46 -07:00 committed by GitHub
commit 6540bd9754
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)