original value instead of string
This commit is contained in:
parent
10e49b1a9a
commit
753d3b0473
1 changed files with 2 additions and 1 deletions
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue