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
|
|
@ -123,7 +123,7 @@ class OGPView {
|
|||
|
||||
// Set some useful variables
|
||||
$javascript .= '<script type="text/javascript">';
|
||||
if(array_key_exists("users_api_key", $_SESSION) && !empty($_SESSION['users_api_key'])){
|
||||
if(array_key_exists("users_api_key", (array)$_SESSION) && !empty($_SESSION['users_api_key'])){
|
||||
$javascript .= 'var userAPIKey = "' . $_SESSION['users_api_key'] . '";';
|
||||
}
|
||||
$javascript .= '</script>' . "\n";
|
||||
|
|
@ -151,7 +151,7 @@ class OGPView {
|
|||
MODULES . "{$_GET['m']}/{$_GET['m']}.css"
|
||||
);
|
||||
|
||||
foreach($fc as $file_check){
|
||||
foreach ((array)$fc as $file_check){
|
||||
if(is_readable($file_check)){
|
||||
$stylesheet .= "<link rel=\"stylesheet\" href=\"${file_check}\">\n";
|
||||
break;
|
||||
|
|
@ -163,7 +163,7 @@ class OGPView {
|
|||
$path . MODULES . "{$_GET['m']}/{$_GET['m']}.js"
|
||||
);
|
||||
|
||||
foreach($fc as $file_check){
|
||||
foreach ((array)$fc as $file_check){
|
||||
if(is_readable($file_check)){
|
||||
$javascript .= "<script type=\"text/javascript\" src=\"${file_check}\"></script>\n";
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue