From a703011cd5bf1a957623976c706fad6186c23458 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 29 Jan 2014 22:50:04 +0100 Subject: [PATCH] small fix --- application/core/Players/PlayerDetailed.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/core/Players/PlayerDetailed.php b/application/core/Players/PlayerDetailed.php index 3c4152c5..b37ae384 100644 --- a/application/core/Players/PlayerDetailed.php +++ b/application/core/Players/PlayerDetailed.php @@ -212,16 +212,15 @@ class PlayerDetailed { $frame = new Frame(); $playerStats = $this->maniaControl->statisticManager->getAllPlayerStats($player); - - $y = $this->height / 2 - 15; - $x = -$this->width / 2 + 52; - $id = 1; + $y = $this->height / 2 - 15; + $x = -$this->width / 2 + 52; + $id = 1; foreach($playerStats as $stat) { $statProperties = $stat[0]; $value = $stat[1]; - if ((int)$value == 0) { + if (floatval($value) == 0) { continue; }