IBR CASUAL OFFICIAL SEPERATED #47

Merged
OpzekerIT merged 15 commits from dev into main 2023-09-29 12:39:59 +00:00
Showing only changes of commit 65120e6d42 - Show all commits

View file

@ -40,8 +40,7 @@ error_reporting(E_ALL);
</tr>"; </tr>";
foreach ($players_matches as $player_datas) { foreach ($players_matches as $player_datas) {
$keys = array_keys($player_datas);
print($keys);
foreach ($player_datas as $player_data) { foreach ($player_datas as $player_data) {
if (!isset($player_data['playername']) || is_null($player_data['playername'])) { if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
continue; // Skip this iteration and move to the next continue; // Skip this iteration and move to the next
@ -51,8 +50,8 @@ error_reporting(E_ALL);
$kills = number_format($player_data['kills'], 2, ',', ''); $kills = number_format($player_data['kills'], 2, ',', '');
$humankills = number_format($player_data['humankills'], 2, ',', ''); $humankills = number_format($player_data['humankills'], 2, ',', '');
$matches = $player_data['matches']; $matches = $player_data['matches'];
$KD_H = ($player_data['KD_H'] == "Infinity") ? "" : number_format($player_data['KD_H'], 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, ',', ''); //$KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', '');
echo "<tr> echo "<tr>
<td>$player_name</td> <td>$player_name</td>