summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-12-05 12:58:32 +0100
committerBjörn Schießle <schiessle@owncloud.com>2012-12-06 15:58:05 +0100
commite3ae0b7ba6c9e19eadfc57c70891e12538b9d77a (patch)
tree894063bc8442172e069898981498868d30f3f62a /lib/filecache.php
parentbf0f39f5b4d1b4cc3e91015b4fcaa0231ff0e2a2 (diff)
downloadnextcloud-server-e3ae0b7ba6c9e19eadfc57c70891e12538b9d77a.tar.gz
nextcloud-server-e3ae0b7ba6c9e19eadfc57c70891e12538b9d77a.zip
fix more undefined indexes
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php2
1 files changed, 1 insertions, 1 deletions
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