One more bug fix in clearFolderSizeCache()

remotes/origin/stable
Michael Gapczynski 15 years ago
parent f10f916f8c
commit 0eda75a193
  1. 3
      apps/files_sharing/sharedstorage.php

@ -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…
Cancel
Save