From: Björn Schießle Date: Wed, 5 Dec 2012 11:58:32 +0000 (+0100) Subject: fix more undefined indexes X-Git-Tag: v5.0.0alpha1~362 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3ae0b7ba6c9e19eadfc57c70891e12538b9d77a;p=nextcloud-server.git fix more undefined indexes --- 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