diff --git a/system/library/games/cs/rcon.php b/system/library/games/cs/rcon.php index b247a9a..62deb70 100644 --- a/system/library/games/cs/rcon.php +++ b/system/library/games/cs/rcon.php @@ -90,7 +90,7 @@ class rcon $get = explode(' ', str_replace('"', '', trim($ssh->get()))); $rcon = trim(end($get)); - if (!isset($rcon{0})) + if (!isset($rcon[0])) sys::outjs(array('r' => 'Необходимо установить rcon пароль (rcon_password).', 'url' => $cfg['http'] . 'servers/id/' . $server['id'] . '/section/settings/subsection/server'), $nmch); return $rcon; diff --git a/system/library/games/cs2/rcon.php b/system/library/games/cs2/rcon.php index 4c4be29..cdb53db 100644 --- a/system/library/games/cs2/rcon.php +++ b/system/library/games/cs2/rcon.php @@ -92,7 +92,7 @@ class rcon $get = explode(' ', str_replace('"', '', trim($ssh->get()))); $rcon = trim(end($get)); - if (!isset($rcon{0})) + if (!isset($rcon[0])) sys::outjs(array('r' => 'Необходимо установить rcon пароль (rcon_password).', 'url' => $cfg['http'] . 'servers/id/' . $server['id'] . '/section/settings/subsection/server'), $nmch); return $rcon; diff --git a/system/library/games/csgo/rcon.php b/system/library/games/csgo/rcon.php index 59f48c3..17a7510 100644 --- a/system/library/games/csgo/rcon.php +++ b/system/library/games/csgo/rcon.php @@ -92,7 +92,7 @@ class rcon $get = explode(' ', str_replace('"', '', trim($ssh->get()))); $rcon = trim(end($get)); - if (!isset($rcon{0})) + if (!isset($rcon[0])) sys::outjs(array('r' => 'Необходимо установить rcon пароль (rcon_password).', 'url' => $cfg['http'] . 'servers/id/' . $server['id'] . '/section/settings/subsection/server'), $nmch); return $rcon; diff --git a/system/library/games/css/rcon.php b/system/library/games/css/rcon.php index ebd12f6..e5e4f18 100644 --- a/system/library/games/css/rcon.php +++ b/system/library/games/css/rcon.php @@ -92,7 +92,7 @@ class rcon $get = explode(' ', str_replace('"', '', trim($ssh->get()))); $rcon = trim(end($get)); - if (!isset($rcon{0})) + if (!isset($rcon[0])) sys::outjs(array('r' => 'Необходимо установить rcon пароль (rcon_password).', 'url' => $cfg['http'] . 'servers/id/' . $server['id'] . '/section/settings/subsection/server'), $nmch); return $rcon; diff --git a/system/library/games/cssold/rcon.php b/system/library/games/cssold/rcon.php index 2562f8b..27cc5bd 100644 --- a/system/library/games/cssold/rcon.php +++ b/system/library/games/cssold/rcon.php @@ -92,7 +92,7 @@ class rcon $get = explode(' ', str_replace('"', '', trim($ssh->get()))); $rcon = trim(end($get)); - if (!isset($rcon{0})) + if (!isset($rcon[0])) sys::outjs(array('r' => 'Необходимо установить rcon пароль (rcon_password).', 'url' => $cfg['http'] . 'servers/id/' . $server['id'] . '/section/settings/subsection/server'), $nmch); return $rcon;