fix: Steam Workshop module issues and modulemanager PHP 8.3 warning

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/773ab9dc-a9f7-463e-8bf1-c37ac01b0b37

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-05 12:35:39 +00:00 committed by GitHub
parent 8c7c63bb72
commit f1c96ff1b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 46 additions and 3 deletions

View file

@ -205,6 +205,12 @@ function update_module($db, $module_id, $module)
{
if(isset($install_queries))
{
if (!array_key_exists($i+1, $install_queries))
{
trigger_error("Module '" . preg_replace('/[^a-zA-Z0-9_\-]/', '', $module) . "': no migration queries defined for db_version step " . ($i+1) . " skipping.", E_USER_NOTICE);
++$i;
continue;
}
foreach ((array)$install_queries[$i+1] as $query)
{
// Support PHP callables in addition to plain SQL strings.