merge my fix from master b464970142

remotes/origin/stable6
Florin Peter 13 years ago
parent 5610429a02
commit d3df80a078
  1. 2
      lib/files/cache/cache.php
  2. 2
      lib/files/cache/scanner.php

@ -441,7 +441,7 @@ class Cache {
$this->calculateFolderSize($path);
if ($path !== '') {
$parent = dirname($path);
if ($parent === '.') {
if ($parent === '.' or $parent === '/') {
$parent = '';
}
$this->correctFolderSize($parent);

@ -68,7 +68,7 @@ class Scanner {
if ($data) {
if ($file) {
$parent = dirname($file);
if ($parent === '.') {
if ($parent === '.' or $parent === '/') {
$parent = '';
}
if (!$this->cache->inCache($parent)) {

Loading…
Cancel
Save