fix more undefined indexes
This commit is contained in:
parent
bf0f39f5b4
commit
e3ae0b7ba6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue