From f7c9a67a968e00fc66f0c147869d77273a6b1ff4 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 4 Oct 2024 21:36:13 +0200 Subject: [PATCH] More fixes to displaying online record --- system/pages/online.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/pages/online.php b/system/pages/online.php index 77f01a2a..deac5fd6 100644 --- a/system/pages/online.php +++ b/system/pages/online.php @@ -100,7 +100,7 @@ foreach($playersOnline as $player) { } $record = ''; -if($players > 0) { +if(count($players_data) > 0) { if( setting('core.online_record')) { $result = null; $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']) . '.' : '.'); } }