working around a bug where user.ui.lists is wrong on load (may be backend)

This commit is contained in:
rolux 2011-09-17 15:43:18 +00:00
commit 786321136a
3 changed files with 7 additions and 3 deletions

View file

@ -86,7 +86,8 @@ Ox.load({
});
// fixme: this should not happen
if (!pandora.user.ui.lists[pandora.user.ui.list]) {
pandora.user.ui.lists[pandora.user.ui.list] = pandora.user.ui.lists[''];
Ox.print('THIS SHOULD NOT HAPPEN', pandora.site.user.ui.lists[''])
pandora.user.ui.lists[pandora.user.ui.list] = pandora.site.user.ui.lists[''];
}
if (data.user.level == 'guest' && $.browser.mozilla) {