fix: resolve three server-start errors (home_id warning, cfg_text_replace TypeError)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9cc2a00d-58ae-48d6-91e3-e52fae97426c Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
e81e63bf1b
commit
184c0bbfd7
2 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ function exec_ogp_module() {
|
|||
$stats_players = 0;
|
||||
$stats_maxplayers = 0;
|
||||
|
||||
$home_id = $_GET['home_id'];
|
||||
$home_id = $_GET['home_id'] ?? null;
|
||||
$home_info = $db->getGameHomeWithoutMods($home_id);
|
||||
|
||||
$home_page = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue