]> source.dussan.org Git - nextcloud-server.git/commitdiff
call ajax scan only if a user is logged in - otherwise we'll get a 500
authorThomas Mueller <thomas.mueller@tmit.eu>
Thu, 31 Jan 2013 22:26:40 +0000 (23:26 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Thu, 31 Jan 2013 22:26:40 +0000 (23:26 +0100)
apps/files/js/files.js

index 3d09d6aa2b65e9921b3b16b17e89e0fbd282503d..8aec701e53feed834b20ce0aa5315c0c38f33f4a 100644 (file)
@@ -776,6 +776,10 @@ $(document).ready(function() {
 });
 
 function scanFiles(force, dir){
+       if (!OC.currentUser) {
+               return;
+       }
+
        if(!dir){
                dir = '';
        }