forked from 0x2620/pandora
dont fail if persons are not defined
This commit is contained in:
parent
4c1dc2afe2
commit
39b5065b59
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue