small fix
This commit is contained in:
parent
c7e46ff304
commit
dcadd1c1f6
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user