[Pkg-owncloud-commits] [owncloud] 202/394: fix increaseSize to also increase the size of the root folder
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:04 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit eb92c9bd1ba65b840f51c36cba0273c77263d89e
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Dec 11 23:55:05 2012 +0100
fix increaseSize to also increase the size of the root folder
---
lib/filecache.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/filecache.php b/lib/filecache.php
index ea20317..16aad1d 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -363,10 +363,13 @@ 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 =='/'){
+ if($path ==''){
return;
}
+ $path=dirname($path);
+ if($path =='/'){
+ $path = '';
+ }
$parent = OC_FileCache_Cached::get($path);
$id = $parent['id'];
//stop walking up the filetree if we hit a non-folder
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list