Skip to content
Snippets Groups Projects
Commit 0eda75a1 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

One more bug fix in clearFolderSizeCache()

parent f10f916f
No related branches found
No related tags found
No related merge requests found
...@@ -267,8 +267,9 @@ class OC_Filestorage_Shared extends OC_Filestorage { ...@@ -267,8 +267,9 @@ class OC_Filestorage_Shared extends OC_Filestorage {
if ($this->is_file($path)) { if ($this->is_file($path)) {
$path = dirname($path); $path = dirname($path);
} }
$dbpath = rtrim($this->datadir.$path, "/");
$query = OC_DB::prepare("DELETE FROM *PREFIX*foldersize WHERE 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 != "") { if ($path != "/" && $path != "") {
$parts = explode("/", $path); $parts = explode("/", $path);
$part = array_pop($parts); $part = array_pop($parts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment