Apply automated PHP8 safety transforms

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/89922108-1604-44ae-949d-358d32b9d70a

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-23 14:01:37 +00:00 committed by GitHub
parent aca850b6cd
commit e44519c030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
465 changed files with 1716 additions and 1716 deletions

View file

@ -80,7 +80,7 @@ function exec_ogp_module() {
get_lang('actions')."</td><td>".get_lang('group_name')."</td><td>".
get_lang('users')."</td></tr>";
foreach ( $result as $row ) #loop through the groups
foreach ((array)$result as $row) #loop through the groups
{
$i++;
echo "<tr class='tr$i'><td><a href='?m=user_games&amp;p=assign&amp;group_id=".$row['group_id']."'>[".
@ -107,11 +107,11 @@ function exec_ogp_module() {
if ( is_array($available_users) )
{
if(count($available_users) > 0){
if(count((array)$available_users) > 0){
echo "<form action=\"?m=user_admin&amp;p=add_to_group\" method=\"post\">".
get_lang('add_user_to_group').
": <select name=\"user_to_add\">";
foreach ($available_users as $user_row )
foreach ((array)$available_users as $user_row)
{
echo "<option value=\"$user_row[user_id]\">" . htmlentities($user_row[users_login]) . "</option>";
}
@ -135,7 +135,7 @@ function exec_ogp_module() {
if (is_array($group_users))
{
echo "<ul>";
foreach ($group_users as $user_id)
foreach ((array)$group_users as $user_id)
{
$user_info = $db->getUserById($user_id['user_id']);
echo "<li><a href='?m=user_admin&amp;p=del_from_group&amp;group_id=".
@ -149,7 +149,7 @@ function exec_ogp_module() {
echo "</table>";
if ($db->isAdmin($_SESSION['user_id']))
$count_groups = $db->get_group_count($search_field);
$count_groups = $db->get_group_count((array)$search_field);
else
$count_groups = $db->getUserGroupList_count($_SESSION['user_id'],$search_field);