mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
More fixes to displaying online record
This commit is contained in:
parent
e8fedb8d16
commit
f7c9a67a96
@ -100,7 +100,7 @@ foreach($playersOnline as $player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$record = '';
|
$record = '';
|
||||||
if($players > 0) {
|
if(count($players_data) > 0) {
|
||||||
if( setting('core.online_record')) {
|
if( setting('core.online_record')) {
|
||||||
$result = null;
|
$result = null;
|
||||||
$timestamp = false;
|
$timestamp = false;
|
||||||
@ -114,7 +114,7 @@ if($players > 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($record) {
|
if($result) {
|
||||||
$record = 'The maximum on this game world was ' . $result['record'] . ' players' . ($timestamp ? ' on ' . date("M d Y, H:i:s", $result['timestamp']) . '.' : '.');
|
$record = 'The maximum on this game world was ' . $result['record'] . ' players' . ($timestamp ? ' on ' . date("M d Y, H:i:s", $result['timestamp']) . '.' : '.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user