From c8a2beccb0b133cc8a24bdef73ffc3c774d70ae4 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 26 Apr 2013 13:20:12 +0200 Subject: [PATCH] Cache: mount user mountpoints to make sure that // exists before accessing it. Fixes #2553 and #2374 --- lib/cache/file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cache/file.php b/lib/cache/file.php index f9ecf41dca..531e1d50f4 100644 --- a/lib/cache/file.php +++ b/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)) {