diff --git a/system/functions.php b/system/functions.php index 3111d314..a8df4ea5 100644 --- a/system/functions.php +++ b/system/functions.php @@ -974,7 +974,7 @@ function getTopPlayers($limit = 5) { if(fieldExist('deletion', 'players')) $deleted = 'deletion'; - $players = $db->query('SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < ' . $config['highscores_groups_hidden'] . ' AND `id` NOT IN (' . implode(', ', $config['highscores_ids_hidden']) . ') AND `' . $deleted . '` = 0 AND `account_id` != 1 ORDER BY `experience` DESC LIMIT 5')->fetchAll(); + $players = $db->query('SELECT `id`, `name`, `level`, `experience` FROM `players` WHERE `group_id` < ' . $config['highscores_groups_hidden'] . ' AND `id` NOT IN (' . implode(', ', $config['highscores_ids_hidden']) . ') AND `' . $deleted . '` = 0 AND `account_id` != 1 ORDER BY `experience` DESC LIMIT ' . (int)$limit)->fetchAll(); $i = 0; foreach($players as &$player) {