diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index d0d8ddaa9..3eb53408a 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -52,7 +52,7 @@ exports.doExport = function(req, res, padId, type) hooks.aCallFirst("exportFileName", padId, function(err, hookFileName){ // if fileName is set then set it to the padId, note that fileName is returned as an array. - if(hookFileName[0]) fileName = hookFileName; + if(hookFileName) fileName = hookFileName; } );