mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 09:05:44 +00:00
fix condition
This commit is contained in:
parent
af4ad5f65b
commit
3d35f47ac9
2 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ class MainController extends AbstractController
|
||||||
'online' => $server->getOnline(),
|
'online' => $server->getOnline(),
|
||||||
'info' => $info,
|
'info' => $info,
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
'connections' => is_null($info['Players']) || $info['Players'] < 0 || is_null($info['Bots']) || $info['Bots'] < 0
|
'connections' => empty($info['Players']) || $info['Players'] < 0 || empty($info['Bots']) || $info['Bots'] < 0
|
||||||
? 0
|
? 0
|
||||||
: (int) $info['Players'] - (int) $info['Bots']
|
: (int) $info['Players'] - (int) $info['Bots']
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ class ServerController extends AbstractController
|
||||||
'online' => $online,
|
'online' => $online,
|
||||||
'players' => $players,
|
'players' => $players,
|
||||||
'status' => $status,
|
'status' => $status,
|
||||||
'connections' => is_null($info['Players']) || $info['Players'] < 0 || is_null($info['Bots']) || $info['Bots'] < 0
|
'connections' => empty($info['Players']) || $info['Players'] < 0 || empty($info['Bots']) || $info['Bots'] < 0
|
||||||
? 0
|
? 0
|
||||||
: (int) $info['Players'] - (int) $info['Bots']
|
: (int) $info['Players'] - (int) $info['Bots']
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue