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

fix more undefined indexes

parent bf0f39f5
No related branches found
No related tags found
No related merge requests found
......@@ -362,10 +362,10 @@ class OC_FileCache{
while($id!=-1) {//walk up the filetree increasing the size of all parent folders
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `size`=`size`+? WHERE `id`=?');
$query->execute(array($sizeDiff, $id));
$path=dirname($path);
if($path == '' or $path =='/'){
return;
}
$path=dirname($path);
$parent = OC_FileCache_Cached::get($path);
$id = $parent['id'];
//stop walking up the filetree if we hit a non-folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment