From 2298121c4b07d9da1db00c65b47c642477cbfba1 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 26 Mar 2012 10:55:49 +0000 Subject: [PATCH] quick fix for pad.ma statistics --- static/js/pandora/statisticsDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index b6445da4..9461a639 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -147,7 +147,7 @@ pandora.ui.statisticsDialog = function() { country = split[1]; city = split[0]; } - countryData = Ox.getCountryByName(country) || {continent: '', region: ''}; + countryData = Ox.getCountryByName(country); continent = countryData.continent; region = [continent, countryData.region].join(', '); country = [region, country].join(', ') @@ -221,7 +221,7 @@ pandora.ui.statisticsDialog = function() { Ox.forEach(data[mode].country, function(countryValue, countryKey) { countryKey = countryKey.split(', ').pop(); if ( - Ox.getCountryByName(countryKey)[key] == regionKey + (Ox.getCountryByName(countryKey) || {})[key] == regionKey && countryValue > max ) { flagCountry[mode][key][regionKey] = countryKey;