The Counter-Strike: Source v34 server is not starting

Whoops\Exception\ErrorException thrown with message "Undefined index: tv"

Stacktrace:
# 5 Whoops\Exception\ErrorException in /var/www/enginegp/system/library/games/cssold/action.php:74
# 4 Whoops\Run:handleError in /var/www/enginegp/system/library/games/cssold/action.php:74
# 3 action:start in /var/www/enginegp/system/sections/servers/action.php:31
# 2 include in /var/www/enginegp/system/engine/servers.php:82
# 1 include in /var/www/enginegp/system/distributor.php:89
# 0 include in /var/www/enginegp/index.php:62

Task:
https://bugs.enginegp.com/view.php?id=2
This commit is contained in:
Sergei Solovev 2024-03-11 03:26:13 +03:00
parent ac918ce26c
commit 35bfd081dc

View file

@ -71,7 +71,7 @@ class action extends actions
$bots = $cfg['bots'][$server['game']] ? '' : '-nobots';
// TV
$tv = $server['tv'] ? '+tv_enable 1 +tv_maxclients 30 +tv_port ' . ($port + 10000) : '-nohltv';
$tv = isset($server['tv']) ? '+tv_enable 1 +tv_maxclients 30 +tv_port ' . ($port + 10000) : '-nohltv';
// FPS
$fps = $server['fps'] + $cfg['fpsplus'];