small fixes/cleanups

This commit is contained in:
kremsy committed 2015-02-01 11:34:51 +01:00
1 parent fd7770d167
commit ef90574ca0
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -454,7 +454,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$votes = $karmaPlugin->getMapVotes($map);
}
if (is_numeric($karma)) {
if (is_numeric($karma) && $votes['count'] > 0) {
if ($this->maniaControl->getSettingManager()->getSettingValue($karmaPlugin, $karmaPlugin::SETTING_NEWKARMA)
) {
$karmaText = ' ' . round($karma * 100.) . '% (' . $votes['count'] . ')';