[Pkg-owncloud-commits] [owncloud] 211/394: fix increaseSize when called directly on the root folder

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:07 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 0e28a6675d80935c6e6a39cf4d7d1f333eba81bb
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Dec 12 16:32:43 2012 +0100

    fix increaseSize when called directly on the root folder
---
 lib/filecache.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/filecache.php b/lib/filecache.php
index 16aad1d..6ddb327 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -354,9 +354,12 @@ class OC_FileCache{
 	 */
 	public static function increaseSize($path,$sizeDiff, $root=false) {
 		if($sizeDiff==0) return;
+		if($path =='/'){
+			$path = '';
+		}
 		$item = OC_FileCache_Cached::get($path);
 		//stop walking up the filetree if we hit a non-folder or reached to root folder
-		if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory'){
+		if($item['mimetype'] !== 'httpd/unix-directory'){
 			return;
 		}
 		$id = $item['id'];

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