From e3ae0b7ba6c9e19eadfc57c70891e12538b9d77a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Wed, 5 Dec 2012 12:58:32 +0100 Subject: [PATCH] fix more undefined indexes --- lib/filecache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filecache.php b/lib/filecache.php index 7bf98f43a37..a02751b08d9 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -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 -- 2.39.5