One more bug fix in clearFolderSizeCache()

This commit is contained in:
Michael Gapczynski 2011-08-20 15:48:48 -04:00
parent f10f916f8c
commit 0eda75a193
1 changed files with 2 additions and 1 deletions

View 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);