[Pkg-owncloud-commits] [owncloud] 311/394: fixes #1015
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:37 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 7052b0759ad7c2edf2443996d6db581d442f3457
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date: Sat Jan 26 20:32:35 2013 +0100
fixes #1015
---
lib/filecache.php | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/filecache.php b/lib/filecache.php
index 6ddb327..c7a4c63 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;
--
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