in info view, don't throw error if no poster is selected

This commit is contained in:
rolux 2011-10-30 08:33:45 +00:00
parent f164e38886
commit 9342bcd391

View file

@ -670,7 +670,8 @@ pandora.ui.infoView = function(data) {
max: 1, max: 1,
min: 1, min: 1,
orientation: 'both', orientation: 'both',
selected: [selectedImage['index']], // fixme: should never be undefined
selected: selectedImage ? [selectedImage['index']] : [],
size: 128, size: 128,
sort: [{key: 'index', operator: '+'}], sort: [{key: 'index', operator: '+'}],
unique: 'index' unique: 'index'