summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-01-07 17:41:04 +0100
committerVincent Petry <pvince81@owncloud.com>2014-01-07 22:34:01 +0100
commit5be4af9f519ef8d0424f8b07ba84c43da9cf11f4 (patch)
treea455baeaee862b4e73c6ec2052818f485e8cb7fe /lib
parentb6474506ebde78ef563d0d0c431d8ad02e7f125c (diff)
downloadnextcloud-server-5be4af9f519ef8d0424f8b07ba84c43da9cf11f4.tar.gz
nextcloud-server-5be4af9f519ef8d0424f8b07ba84c43da9cf11f4.zip
Now also preventing to override "files" dir size with -1
Fixes #6526
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/homecache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/homecache.php b/lib/private/files/cache/homecache.php
index 18dfbfe3191..71bb944da71 100644
--- a/lib/private/files/cache/homecache.php
+++ b/lib/private/files/cache/homecache.php
@@ -16,7 +16,7 @@ class HomeCache extends Cache {
* @return int
*/
public function calculateFolderSize($path) {
- if ($path !== '/' and $path !== '') {
+ if ($path !== '/' and $path !== '' and $path !== 'files') {
return parent::calculateFolderSize($path);
}