fixed console result to be parsed as int
This commit is contained in:
parent
fd0cdfd843
commit
7673c1dfc1
@ -2,6 +2,6 @@
|
|||||||
class realm {
|
class realm {
|
||||||
public static function status(){
|
public static function status(){
|
||||||
$res = shell_exec('/home/mojotrolls/mojo_zero/realm status 2>&1');
|
$res = shell_exec('/home/mojotrolls/mojo_zero/realm status 2>&1');
|
||||||
$res == '1' ? new WOW_STATS_ONLINE() : new WOW_STATS_OFLINE();
|
($res == 1) ? new WOW_STATS_ONLINE() : new WOW_STATS_OFLINE();
|
||||||
return $res == '1' ? '<status>on</status>' : '<status>off</status>';}
|
return ($res == 1) ? '<status>on</status>' : '<status>off</status>';}
|
||||||
}
|
}
|
||||||
@ -2,6 +2,6 @@
|
|||||||
class world {
|
class world {
|
||||||
public static function status(){
|
public static function status(){
|
||||||
$res = shell_exec('/home/mojotrolls/mojo_zero/world status 2>&1');
|
$res = shell_exec('/home/mojotrolls/mojo_zero/world status 2>&1');
|
||||||
$res == '1' ? new WOW_STATS_ONLINE() : new WOW_STATS_OFLINE();
|
($res == 1) ? new WOW_STATS_ONLINE() : new WOW_STATS_OFLINE();
|
||||||
return $res == '1' ? '<status>on</status>' : '<status>off</status>';}
|
return ($res == 1) ? '<status>on</status>' : '<status>off</status>';}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user