fix more undefined indexes
This commit is contained in:
parent
bf0f39f5b4
commit
e3ae0b7ba6
|
@ -362,10 +362,10 @@ class OC_FileCache{
|
||||||
while($id!=-1) {//walk up the filetree increasing the size of all parent folders
|
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=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `size`=`size`+? WHERE `id`=?');
|
||||||
$query->execute(array($sizeDiff, $id));
|
$query->execute(array($sizeDiff, $id));
|
||||||
|
$path=dirname($path);
|
||||||
if($path == '' or $path =='/'){
|
if($path == '' or $path =='/'){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$path=dirname($path);
|
|
||||||
$parent = OC_FileCache_Cached::get($path);
|
$parent = OC_FileCache_Cached::get($path);
|
||||||
$id = $parent['id'];
|
$id = $parent['id'];
|
||||||
//stop walking up the filetree if we hit a non-folder
|
//stop walking up the filetree if we hit a non-folder
|
||||||
|
|
Loading…
Reference in New Issue