summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-12-06 14:02:55 +0100
committerBjörn Schießle <schiessle@owncloud.com>2012-12-06 15:58:12 +0100
commit5b04db9b225fd1ed4ad39bef3b77d5fe46b933df (patch)
tree51b292095b31f9bdbb9bf4f81dcf669ea6ec7969 /lib
parente3ae0b7ba6c9e19eadfc57c70891e12538b9d77a (diff)
downloadnextcloud-server-5b04db9b225fd1ed4ad39bef3b77d5fe46b933df.tar.gz
nextcloud-server-5b04db9b225fd1ed4ad39bef3b77d5fe46b933df.zip
one more undefined index error
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index a02751b08d9..bbf55bc1f86 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -354,8 +354,8 @@ class OC_FileCache{
public static function increaseSize($path, $sizeDiff, $root=false) {
if($sizeDiff==0) return;
$item = OC_FileCache_Cached::get($path);
- //stop walking up the filetree if we hit a non-folder
- if($item['mimetype'] !== 'httpd/unix-directory'){
+ //stop walking up the filetree if we hit a non-folder or reached to root folder
+ if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory'){
return;
}
$id = $item['id'];