small fix

This commit is contained in:
kremsy 2014-02-01 17:47:05 +01:00 committed by Steffen Schröder
parent c7e46ff304
commit dcadd1c1f6
2 changed files with 4 additions and 2 deletions

View File

@ -225,12 +225,11 @@ class PlayerDetailed {
} }
if ($statProperties->type == StatisticManager::STAT_TYPE_TIME) { if ($statProperties->type == StatisticManager::STAT_TYPE_TIME) {
$value = Formatter::formatTimeH($value); $value = Formatter::formatTimeHMS($value);
} else if ($statProperties->type == StatisticManager::STAT_TYPE_FLOAT) { } else if ($statProperties->type == StatisticManager::STAT_TYPE_FLOAT) {
$value = round(floatval($value), 2); $value = round(floatval($value), 2);
} }
if ($id % 2 != 0) { if ($id % 2 != 0) {
$lineQuad = new Quad_BgsPlayerCard(); $lineQuad = new Quad_BgsPlayerCard();
$frame->add($lineQuad); $frame->add($lineQuad);

View File

@ -390,6 +390,9 @@ class StatisticManager {
if (!$statId) { if (!$statId) {
return false; return false;
} }
if ($value < 1) {
return false;
}
if ($serverIndex == -1) { if ($serverIndex == -1) {
$serverIndex = $this->maniaControl->server->index; $serverIndex = $this->maniaControl->server->index;