From b9abc8002b8325e7eb75183eb36a3f5bd286a402 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 27 Mar 2013 15:55:09 +0100 Subject: [PATCH] use === to compare empty string '' --- apps/files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 65da03984f2..c15422d28b6 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -258,7 +258,7 @@ $(document).ready(function() { //singleFileUploads is on by default, so the data.files array will always have length 1 add: function(e, data) { - if(data.files[0].type == '' && data.files[0].size == 4096) + if(data.files[0].type === '' && data.files[0].size == 4096) { data.textStatus = 'dirorzero'; data.errorThrown = t('files','Unable to upload your file as it is a directory or has 0 bytes'); -- 2.39.5