dont use the home storage for non-existing users

This commit is contained in:
Robin Appelman 2013-10-29 13:12:28 +01:00
parent e273c14540
commit 0e92a4896d
1 changed files with 2 additions and 2 deletions

View File

@ -306,10 +306,10 @@ class Filesystem {
$root = \OC_User::getHome($user);
if (\OC\Files\Cache\Storage::exists('local::' . $root . '/')) {
$userObject = \OC_User::getManager()->get($user);
if (\OC\Files\Cache\Storage::exists('local::' . $root . '/') or is_null($userObject)) {
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
} else {
$userObject = \OC_User::getManager()->get($user);
self::mount('\OC\Files\Storage\Home', array('user' => $userObject), $user);
}
$datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data");