Minor fixes

This commit is contained in:
Sergei Solovev 2023-12-03 18:08:16 +03:00
parent 9fd9971249
commit a43402dee8
5 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;