removed weird == null comparing

This commit is contained in:
Steffen Schröder
2014-03-31 21:54:51 +02:00
parent d6cbba3d4b
commit fd0d84dfb0
7 changed files with 10 additions and 20 deletions

View File

@ -114,9 +114,7 @@ class StatisticManager {
$mysqli = $this->maniaControl->database->mysqli;
$statId = $this->getStatId($statName);
if ($statId == null) {
return -1;
}
if (!$statId) return -1;
if ($serverIndex == -1) {
$query = "SELECT SUM(value) as value FROM `" . self::TABLE_STATISTICS . "` WHERE `statId` = " . $statId . " AND `playerId` = " . $playerId . ";";