From 7052b0759ad7c2edf2443996d6db581d442f3457 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Sat, 26 Jan 2013 20:32:35 +0100 Subject: fixes #1015 --- lib/filecache.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/filecache.php b/lib/filecache.php index 6ddb327660b..c7a4c63bded 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -348,9 +348,9 @@ class OC_FileCache{ /** * adjust the size of the parent folders - * @param string $path + * @param string $path root (optional) * @param int $sizeDiff - * @param string root (optinal) + * @param bool $root */ public static function increaseSize($path,$sizeDiff, $root=false) { if($sizeDiff==0) return; @@ -358,6 +358,10 @@ class OC_FileCache{ $path = ''; } $item = OC_FileCache_Cached::get($path); + // not found? -> return + if ($item === false || !isset($item['mimetype'])) { + return; + } //stop walking up the filetree if we hit a non-folder or reached to root folder if($item['mimetype'] !== 'httpd/unix-directory'){ return; -- cgit v1.2.3 From 6a4e667d1646122fc7fb30e06eea6bc46f513238 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Sat, 26 Jan 2013 20:44:49 +0100 Subject: fixes #1015 --- apps/files_sharing/lib/util.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/util.php b/apps/files_sharing/lib/util.php index 2306408dc0e..a7422941c06 100644 --- a/apps/files_sharing/lib/util.php +++ b/apps/files_sharing/lib/util.php @@ -1,4 +1,4 @@ -