fix a bug where the statistics dialog wouldn't display before the first new sign-up of the current year

This commit is contained in:
rolux 2013-01-01 12:40:16 +00:00
parent 8b92595d1d
commit ccbb954b3e

View file

@ -203,7 +203,7 @@ pandora.ui.statisticsDialog = function() {
Ox.loop(firstKey[0], lastKey[0] + 1, function(year) {
['firstseen', 'lastseen'].forEach(function(key) {
var key = [year, key].join('-');
data[mode].year[key] = data[mode].year[key] || 0;
data[mode].year[key] = data[mode].year[key] || {};
});
Ox.loop(
year == firstKey[0] ? firstKey[1] : 1,