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:
parent
8c7c63bb72
commit
f1c96ff1b7
4 changed files with 46 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue