diff --git a/modules/billing/adminserverlist.php b/modules/billing/adminserverlist.php index f61cba53..299442b4 100644 --- a/modules/billing/adminserverlist.php +++ b/modules/billing/adminserverlist.php @@ -114,6 +114,8 @@ function sync_billing_services(mysqli $db, string $prefix): array } $svcName = $db->real_escape_string($gm['mod_name'] ?: $gm['game_name']); $homeCfgId = (int)$gm['home_cfg_id']; + // remote_server_id is intentionally empty: no servers are assigned until + // an admin reviews and enables the service on the adminserverlist page. $db->query( "INSERT INTO `{$prefix}billing_services` (home_cfg_id, mod_cfg_id, service_name, description, diff --git a/modules/config_games/config_servers.php b/modules/config_games/config_servers.php index 4a2ad9a2..251d88f2 100644 --- a/modules/config_games/config_servers.php +++ b/modules/config_games/config_servers.php @@ -55,7 +55,7 @@ function gsp_normalize_config_value($value): string } if ($isFlat) { return implode(',', array_map(function ($item) { - return $item instanceof SimpleXMLElement ? (string)$item : (string)$item; + return (string)$item; }, $value)); } return json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);