Minor fixes
This commit is contained in:
parent
9fd9971249
commit
a43402dee8
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue