]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't increase the size of the users home folder twice
authorRobin Appelman <icewind@owncloud.com>
Sat, 13 Oct 2012 12:32:58 +0000 (14:32 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sat, 13 Oct 2012 12:52:58 +0000 (14:52 +0200)
lib/filecache/update.php

index 1b81f70d77b69f4870ee7826018e90fc1725d369..4a5ea873b1748a436b0fcea7736f0f295e4ef787 100644 (file)
@@ -174,7 +174,9 @@ class OC_FileCache_Update{
                }else{
                        $size=OC_FileCache::scanFile($path, $root);
                }
-               OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root);
+               if($path !== '' and $path !== '/'){
+                       OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root);
+               }
        }
 
        /**