fix: cast mod_name to string in preg_match; add created_by_admin to billing_orders schema
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/15c9652a-a4a6-4f02-bcc2-15f8fed708b1 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
443d33ca3f
commit
7551567354
2 changed files with 2 additions and 1 deletions
2
home.php
2
home.php
|
|
@ -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=".
|
||||
|
|
|
|||
|
|
@ -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`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue