Cache: mount user mountpoints to make sure that // exists before accessing it. Fixes #2553 and #2374

remotes/origin/stable6
Arthur Schiwon 13 years ago
parent 96b1e54d4a
commit c8a2beccb0
  1. 1
      lib/cache/file.php

@ -14,6 +14,7 @@ class OC_Cache_File{
return $this->storage;
}
if(OC_User::isLoggedIn()) {
\OC\Files\Filesystem::initMountPoints(OC_User::getUser());
$subdir = 'cache';
$view = new \OC\Files\View('/'.OC_User::getUser());
if(!$view->file_exists($subdir)) {

Loading…
Cancel
Save