diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/oc-dialogs.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index ed4d7c678e1..61b58d00fa6 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -245,9 +245,7 @@ var OCdialogs = { }, _getFileList: function(dir, mimeType) { if (typeof(mimeType) === "string") { - var tmp = mimeType; - mimeType = new Array(); - mimeType[0] = tmp; + mimeType = [mimeType]; } return $.getJSON( |