From 9180ec802c8d008adc6adb8f8ddd8c4cc6bf2448 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 16:06:09 +0200 Subject: [PATCH] original value instead of string --- last_stats.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 642d5db..5bdd17b 100644 --- a/last_stats.php +++ b/last_stats.php @@ -79,9 +79,10 @@ error_reporting(E_ALL); : "0")); // or any other default string for non-numerical values $wins = number_format($player_data['wins'], 2, ',', ''); $winratio = number_format($player_data['winratio'], 2, ',', ''); + $originalChange = $player_data['change']; $change = number_format($player_data['change'], 2, ',', ''); - if ($change < 0) { + if ($originalChange < 0) { $imagePath = 'images\red.png'; } elseif ($change > 0) { $imagePath = 'images\green.png';