This commit is contained in:
Lanta 2023-10-03 16:23:41 +02:00
parent 4455c8aaec
commit 3d03257aa4

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';