From f6ac51834468437b29ea956bfeba6e9fc6f636b5 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 29 Sep 2023 13:53:32 +0200 Subject: [PATCH] s --- last_stats.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/last_stats.php b/last_stats.php index d901c87..9b8d39f 100644 --- a/last_stats.php +++ b/last_stats.php @@ -40,8 +40,7 @@ error_reporting(E_ALL); "; foreach ($players_matches as $player_datas) { - $keys = array_keys($player_datas); - print($keys); + foreach ($player_datas as $player_data) { if (!isset($player_data['playername']) || is_null($player_data['playername'])) { continue; // Skip this iteration and move to the next @@ -51,8 +50,8 @@ error_reporting(E_ALL); $kills = number_format($player_data['kills'], 2, ',', ''); $humankills = number_format($player_data['humankills'], 2, ',', ''); $matches = $player_data['matches']; - $KD_H = ($player_data['KD_H'] == "Infinity") ? "∞" : number_format($player_data['KD_H'], 2, ',', ''); - $KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', ''); + //$KD_H = ($player_data['KD_H'] == "Infinity") ? "∞" : number_format($player_data['KD_H'], 2, ',', ''); + //$KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', ''); echo " $player_name