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:
parent
aca850b6cd
commit
e44519c030
465 changed files with 1716 additions and 1716 deletions
|
|
@ -85,10 +85,10 @@ function exec_ogp_module()
|
|||
$params = array('token' => $token);
|
||||
$response = getResponse($ip, $port, '/v2/bans/list/', $params);
|
||||
$bans_table = "<table>";
|
||||
foreach($response['bans'] as $ban)
|
||||
foreach ((array)$response['bans'] as $ban)
|
||||
{
|
||||
$bans_table .= "<tr>";
|
||||
foreach($ban as $ban_key => $ban_value)
|
||||
foreach ((array)$ban as $ban_key => $ban_value)
|
||||
$bans_table .= "<td><b>".strtoupper($ban_key)."</b>: ".$ban_value."</td>";
|
||||
$bans_table .= "</tr>";
|
||||
}
|
||||
|
|
@ -129,7 +129,7 @@ function exec_ogp_module()
|
|||
if($response['status'] == '200')
|
||||
{
|
||||
$bans_table = "<table><tr>";
|
||||
foreach($response as $ban_key => $ban_value)
|
||||
foreach ((array)$response as $ban_key => $ban_value)
|
||||
if($ban_key != 'status')
|
||||
$bans_table .= "<td><b>".strtoupper($ban_key)."</b>: ".$ban_value."</td>";
|
||||
$bans_table .= "</tr></table>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue