diff --git a/common/js/common.js b/common/js/common.js index 9899d4d7e..539eea84b 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -254,8 +254,10 @@ function displayMultimedia(src, width, height, options) { flashvars : '' }; - var autostart = (options.autostart) ? 'true' : 'false'; - delete(options.autostart); + if(options) { + var autostart = (options.autostart) ? 'true' : 'false'; + delete(options.autostart); + } var params = objectExtend(defaults, options || {});