One more bug fix in clearFolderSizeCache()
This commit is contained in:
parent
f10f916f8c
commit
0eda75a193
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue