original value instead of string

This commit is contained in:
Lanta 2023-10-03 16:06:09 +02:00
parent 41969557f9
commit 9180ec802c

View file

@ -79,9 +79,10 @@ 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'];
$change = number_format($player_data['change'], 2, ',', ''); $change = number_format($player_data['change'], 2, ',', '');
if ($change < 0) { if ($originalChange < 0) {
$imagePath = 'images\red.png'; $imagePath = 'images\red.png';
} elseif ($change > 0) { } elseif ($change > 0) {
$imagePath = 'images\green.png'; $imagePath = 'images\green.png';