]> source.dussan.org Git - nextcloud-server.git/commitdiff
one more undefined index error
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 6 Dec 2012 13:02:55 +0000 (14:02 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 6 Dec 2012 14:58:12 +0000 (15:58 +0100)
lib/filecache.php

index a02751b08d9e98fd1da5d649e4ff50c540bd40d0..bbf55bc1f86730ce9ea21148c2c96d6491232247 100644 (file)
@@ -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'];