fix more undefined indexes

This commit is contained in:
Björn Schießle 2012-12-05 12:58:32 +01:00
parent bf0f39f5b4
commit e3ae0b7ba6
1 changed files with 1 additions and 1 deletions

View File

@ -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