From 5af334e15aa687871e59c0d65fb819b70692d758 Mon Sep 17 00:00:00 2001 From: D-storm Date: Sun, 27 Jul 2014 23:17:15 +0530 Subject: [PATCH] fix js error: undefined dataTransfer.files in IE9 Signed-off-by: D-storm --- js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index dbbe10efca..4d66aea3a6 100644 --- a/js/common.js +++ b/js/common.js @@ -564,7 +564,7 @@ PMA_DROP_IMPORT = { //if no database is selected -- no if (dbname !== '') { var files = event.originalEvent.dataTransfer.files; - if (files.length === 0) { + if (!files || files.length === 0) { // No files actually transfered $(".pma_drop_handler").fadeOut(); event.stopPropagation();