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:
commit
6540bd9754
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ require_once('includes/lib_remote.php');
|
||||||
function renderParam($param, $last_param, $param_access_enabled, $home_id)
|
function renderParam($param, $last_param, $param_access_enabled, $home_id)
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
if (!is_array($last_param)) {
|
||||||
|
$last_param = [];
|
||||||
|
}
|
||||||
$isAdmin = $db->isAdmin($_SESSION['user_id']);
|
$isAdmin = $db->isAdmin($_SESSION['user_id']);
|
||||||
$attributesString = "";
|
$attributesString = "";
|
||||||
foreach ($param->attribute as $attribute)
|
foreach ($param->attribute as $attribute)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue