From 39b5065b599ca24a9f5e91eb2ca8f300e6d3437e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 21 Jan 2012 14:57:38 +0000 Subject: [PATCH] dont fail if persons are not defined --- static/js/pandora/infoView.padma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 5b9a52c3..810a2d25 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -308,7 +308,7 @@ pandora.ui.infoView = function(data) { } else if (data.director || data.cinematographer || data.featuring) { var html = []; ['director', 'cinematographer', 'featuring'].forEach(function(key) { - if (data[key].length) { + if (data[key] && data[key].length) { html.push( formatKey(key) + formatValue(data[key], key)