[Pkg-owncloud-commits] [owncloud] 189/394: one more undefined index error

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:00 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 c0d45c890f1c7323a62fc90219532f1a449f7ee6
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Thu Dec 6 14:02:55 2012 +0100

    one more undefined index error
---
 lib/filecache.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/filecache.php b/lib/filecache.php
index 6f2a39c..ea20317 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -355,8 +355,8 @@ class OC_FileCache{
 	public static function increaseSize($path,$sizeDiff, $root=false) {
 		if($sizeDiff==0) return;
 		$item = OC_FileCache_Cached::get($path);
-		//stop walking up the filetree if we hit a non-folder
-		if($item['mimetype'] !== 'httpd/unix-directory'){
+		//stop walking up the filetree if we hit a non-folder or reached to root folder
+		if($path == '/' || $path=='' || $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