One more bug fix in clearFolderSizeCache()
This commit is contained in:
parent
f10f916f8c
commit
0eda75a193
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue