small fix serverrankings plugin

This commit is contained in:
kremsy 2014-04-20 16:13:24 +02:00 committed by Steffen Schröder
parent 0859f54722
commit 36a6cf786d
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class StatisticManager {
* @param $serverIndex
* @param $minValue
* @internal param $orderedBy
* @return object
* @return array
*/
public function getStatsRanking($statName = '', $serverIndex = -1, $minValue = -1) {
if (isset($this->specialStats[$statName])) {

View File

@ -208,7 +208,6 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener {
$ranks = $this->maniaControl->statisticManager->getStatsRanking(StatisticCollector::STAT_ON_HIT, -1, $minHits);
arsort($ranks);
break;
case self::RANKING_TYPE_RECORDS: //TODO verify workable status
if (!$this->maniaControl->pluginManager->isPluginActive('LocalRecordsPlugin')) {