Merge pull request #76 from GameServerPanel/copilot/fix-preg-match-deprecation-and-database-error

This commit is contained in:
Frank Harris 2026-05-01 06:05:36 -07:00 committed by GitHub
commit 21b8dab91b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -210,7 +210,7 @@ function ogpHome()
foreach ((array)$server_homes as $server_home)
{
$button_name = htmlentities($server_home['home_name']);
if( ! preg_match("/none/i", $server_home['mod_name']) )
if( ! preg_match("/none/i", (string)$server_home['mod_name']) )
$button_name .= " - ".$server_home['mod_name'];
$game_homes_list .= "<li><a title='".$server_home['ip'].':'.$server_home['port'].
"' class='user_menu_link' href='?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port=".

View file

@ -85,6 +85,7 @@ $install_queries[0] = array(
`payment_txid` VARCHAR(255) NULL,
`paid_ts` DATETIME NULL,
`coupon_id` INT(11) NOT NULL DEFAULT 0,
`created_by_admin` TINYINT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`order_id`),
KEY `user_id` (`user_id`),
KEY `status` (`status`),