Fix: array offset on false in getNextAvailablePort, array-to-string in render_node attributes, missing columns in sync_billing_services INSERT
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5bf3f57e-9174-4768-ae8b-c3526a1daeca Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
735322b8bc
commit
d57e3d0152
3 changed files with 11 additions and 6 deletions
|
|
@ -3588,11 +3588,11 @@ class OGPDatabaseMySQL extends OGPDatabase
|
|||
|
||||
public function getNextAvailablePort($ip_id,$home_cfg_id){
|
||||
$ranges = $this->getPortsRange($ip_id,$home_cfg_id);
|
||||
$range = $ranges[0];
|
||||
$range = is_array($ranges) ? ($ranges[0] ?? null) : null;
|
||||
if(empty($range))
|
||||
{
|
||||
$ranges = $this->getPortsRange($ip_id,"0");
|
||||
$range = $ranges[0];
|
||||
$range = is_array($ranges) ? ($ranges[0] ?? null) : null;
|
||||
}
|
||||
if(empty($range))
|
||||
$range = array('start_port' => '27015','end_port' => '39915', 'port_increment' => '100');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue