summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-26 20:32:35 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-26 20:48:26 +0100
commit7052b0759ad7c2edf2443996d6db581d442f3457 (patch)
tree03d71c4d001ba9ab410f3065784b6f3da79f7b60
parent8939d41c6c58e3e508687ab0a90889d70eddd26d (diff)
downloadnextcloud-server-7052b0759ad7c2edf2443996d6db581d442f3457.tar.gz
nextcloud-server-7052b0759ad7c2edf2443996d6db581d442f3457.zip
fixes #1015
-rw-r--r--lib/filecache.php8
1 files 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;