Skip to content
Snippets Groups Projects
Commit 5b04db9b authored by Björn Schießle's avatar Björn Schießle
Browse files

one more undefined index error

parent e3ae0b7b
Branches
No related tags found
No related merge requests found
......@@ -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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment