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

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