From 515790b1a02585e1111968bfa7e29e54554c7753 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Fri, 5 Jan 2018 00:35:49 +0100 Subject: [PATCH] * fixed table name players -> players_online --- system/status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/status.php b/system/status.php index 5d060d08..f76f54c5 100644 --- a/system/status.php +++ b/system/status.php @@ -104,7 +104,7 @@ function updateStatus() { { // get amount of players that are currently logged in-game, including disconnected clients (exited) if(tableExist('players_online')) { // tfs 1.x - $query = $db->query('SELECT COUNT(`player_id`) AS `playersTotal` FROM `players`;'); + $query = $db->query('SELECT COUNT(`player_id`) AS `playersTotal` FROM `players_online`;'); } else { $query = $db->query('SELECT COUNT(`id`) AS `playersTotal` FROM `players` WHERE `online` > 0');