mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Fix highscores online status for TFS 0.3/0.4
And all distributions, where players.online column is present
This commit is contained in:
parent
e5ca3daa54
commit
ee9e939f88
@ -211,7 +211,13 @@ if($db->hasTable('players_online') && count($players) > 0) {
|
|||||||
|
|
||||||
foreach($skills as $player)
|
foreach($skills as $player)
|
||||||
{
|
{
|
||||||
$player['online'] = (isset($is_online[$player['id']]) ? 1 : 0);
|
if(isset($is_online)) {
|
||||||
|
$player['online'] = (isset($is_online[$player['id']]) ? 1 : 0);
|
||||||
|
} else {
|
||||||
|
if(!isset($player['online'])) {
|
||||||
|
$player['online'] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(++$i <= $config['highscores_length'])
|
if(++$i <= $config['highscores_length'])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user