Merge pull request #68 from OpzekerIT/dev

Dev
This commit is contained in:
Lanta 2023-10-03 16:48:06 +02:00 committed by GitHub
commit 02d3039511
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
config/config.php config/config.php
data/telemetry_cache/* data/telemetry_cache/*
data/*
temp/* temp/*
discord/config.php discord/config.php

View file

@ -79,8 +79,8 @@ error_reporting(E_ALL);
: "0")); // or any other default string for non-numerical values : "0")); // or any other default string for non-numerical values
$wins = number_format($player_data['wins'], 2, ',', ''); $wins = number_format($player_data['wins'], 2, ',', '');
$winratio = number_format($player_data['winratio'], 2, ',', ''); $winratio = number_format($player_data['winratio'], 2, ',', '');
$originalChange = $player_data['change']; $originalChange = str_replace(',', '.', $player_data['change']); // replace comma with period
$change = number_format($player_data['change'], 2, ',', ''); $change = floatval($originalChange);
if ($originalChange < 0) { if ($originalChange < 0) {
$imagePath = 'images\red.png'; $imagePath = 'images\red.png';