diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index ed4d7c678e1795060a57eedc43f42870a99ef850..61b58d00fa66738eba101d44be2e88048df2ab0d 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(