Merge pull request #94 from OpzekerIT/dev

all minimum of 20 matches
This commit is contained in:
Lanta 2023-11-12 11:43:18 +01:00 committed by GitHub
commit 5efeb02a9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,11 @@ error_reporting(E_ALL);
} }
echo "<br>"; echo "<br>";
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 "<table border='1' class='sortable'>"; echo "<table border='1' class='sortable'>";
echo "<tr> echo "<tr>
<th>Player</th> <th>Player</th>
@ -52,6 +56,10 @@ error_reporting(E_ALL);
if ($player_data['matches'] < 8){ if ($player_data['matches'] < 8){
continue; continue;
} }
if ($key == 'all' && $player_data['matches'] < 20) {
continue;
}
$player_name = $player_data['playername']; $player_name = $player_data['playername'];
$deaths = number_format($player_data['deaths'], 0, ',', ''); $deaths = number_format($player_data['deaths'], 0, ',', '');
$kills = number_format($player_data['kills'], 0, ',', ''); $kills = number_format($player_data['kills'], 0, ',', '');