]> source.dussan.org Git - nextcloud-server.git/commitdiff
One more bug fix in clearFolderSizeCache()
authorMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 20 Aug 2011 19:48:48 +0000 (15:48 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Sat, 20 Aug 2011 19:48:48 +0000 (15:48 -0400)
apps/files_sharing/sharedstorage.php

index b56245aab8c7e34b7b2da8dbf1577e2773a9392c..48fc59aac3d33f4cfa2d19967bf33467909e05a9 100644 (file)
@@ -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);