Fix game monitor billing expiration display

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/0bb2bf91-6e30-4a24-a514-110dfa54397f

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-05 10:13:58 +00:00 committed by GitHub
parent d36e85c71f
commit 2a5dd10181
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 74 additions and 3 deletions

View file

@ -351,9 +351,10 @@ echo "<table id='servermonitor' class='tablesorter' data-sortlist='[[0,0],[3,1]]
//set the display of how long server has until expired
//default is it never expires
$expiration_dates = "This Server Will NEVER Expire";
// Look up the billing expiration for this server from billing_orders.end_date.
// See get_server_billing_expiration_html() in home_handling_functions.php for
// color thresholds: green >10 days, yellow 4-10 days, red 1-3 days or expired.
$expiration_dates = get_server_billing_expiration_html((int)$server_home['home_id']);
if( !isset($server_home['mod_id']) )