From c63cb812e85db4dc25a98b7ca704bdbe80d11162 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 15 May 2014 10:53:37 +0100 Subject: [PATCH] Update ExportHandler.js --- src/node/handler/ExportHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } );