summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-20 15:48:48 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-20 15:48:48 -0400
commit0eda75a19378302fcdadd72cf6537745fd7ee736 (patch)
treee05df1ae84e0b4326c53e896b22a075f9354e710 /apps/files_sharing
parentf10f916f8c2c59eac0cb9b625c64fa447117a8eb (diff)
downloadnextcloud-server-0eda75a19378302fcdadd72cf6537745fd7ee736.tar.gz
nextcloud-server-0eda75a19378302fcdadd72cf6537745fd7ee736.zip
One more bug fix in clearFolderSizeCache()
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/sharedstorage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index b56245aab8c..48fc59aac3d 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -267,8 +267,9 @@ class OC_Filestorage_Shared extends OC_Filestorage {
if ($this->is_file($path)) {
$path = dirname($path);
}
+ $dbpath = rtrim($this->datadir.$path, "/");
$query = OC_DB::prepare("DELETE FROM *PREFIX*foldersize WHERE path = ?");
- $result = $query->execute(array($this->datadir.$path));
+ $result = $query->execute(array($dbpath));
if ($path != "/" && $path != "") {
$parts = explode("/", $path);
$part = array_pop($parts);