[Pkg-owncloud-commits] [owncloud] 181/394: fix more undefined indexes
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:59 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 3bb0f45b9b8249a9fbf15a50fb8085db6f4bb6e4
Author: Björn Schießle <schiessle at owncloud.com>
Date: Wed Dec 5 12:58:32 2012 +0100
fix more undefined indexes
---
lib/filecache.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/filecache.php b/lib/filecache.php
index 6a1b1f3..6f2a39c 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -363,10 +363,10 @@ class OC_FileCache{
while($id!=-1) {//walk up the filetree increasing the size of all parent folders
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `size`=`size`+? WHERE `id`=?');
$query->execute(array($sizeDiff, $id));
+ $path=dirname($path);
if($path == '' or $path =='/'){
return;
}
- $path=dirname($path);
$parent = OC_FileCache_Cached::get($path);
$id = $parent['id'];
//stop walking up the filetree if we hit a non-folder
--
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