From 7db8135b61253ed2e17fe659ad61685a831fff8c Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 26 Mar 2012 10:58:19 +0000 Subject: [PATCH] quick fix for pad.ma statistics --- static/js/pandora/statisticsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index 9461a639..696edc45 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); + countryData = Ox.getCountryByName(country) || {continent: '', region: ''}; continent = countryData.continent; region = [continent, countryData.region].join(', '); country = [region, country].join(', ')