From 88015d3f1aeb6067f1072df2a351f324ea005a7e Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:42:34 +0100 Subject: [PATCH] all minimum of 20 matches --- last_stats.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 82da50d..87993c9 100644 --- a/last_stats.php +++ b/last_stats.php @@ -29,7 +29,11 @@ error_reporting(E_ALL); } echo "
"; - echo "Stats for $key (minimal 8 matches)"; + if($key == 'all'){ + echo "Stats for $key (minimal 20 matches)"; + }else{ + echo "Stats for $key (minimal 8 matches)"; + } echo ""; echo " @@ -52,6 +56,10 @@ error_reporting(E_ALL); if ($player_data['matches'] < 8){ continue; } + if ($key == 'all' && $player_data['matches'] < 20) { + continue; + } + $player_name = $player_data['playername']; $deaths = number_format($player_data['deaths'], 0, ',', ''); $kills = number_format($player_data['kills'], 0, ',', '');
Player