dont fail if persons are not defined

This commit is contained in:
j 2012-01-21 14:57:38 +00:00
parent 4c1dc2afe2
commit 39b5065b59

View file

@ -308,7 +308,7 @@ pandora.ui.infoView = function(data) {
} else if (data.director || data.cinematographer || data.featuring) { } else if (data.director || data.cinematographer || data.featuring) {
var html = []; var html = [];
['director', 'cinematographer', 'featuring'].forEach(function(key) { ['director', 'cinematographer', 'featuring'].forEach(function(key) {
if (data[key].length) { if (data[key] && data[key].length) {
html.push( html.push(
formatKey(key) formatKey(key)
+ formatValue(data[key], key) + formatValue(data[key], key)