]> source.dussan.org Git - nextcloud-server.git/commitdiff
use === to compare empty string ''
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 27 Mar 2013 14:55:09 +0000 (15:55 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 1 Jul 2013 17:35:11 +0000 (19:35 +0200)
apps/files/js/files.js

index 65da03984f2df79afd35e34660b4389060b17058..c15422d28b6dc8b74b2f4194cfd4632aaa635af6 100644 (file)
@@ -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');