diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-11 14:39:27 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-18 12:53:20 +0200 |
commit | 1374ba9adf3234222826beb1e069acdd34ab5126 (patch) | |
tree | 0c160fb5176915f3d19ff2377903b6b456b50cf2 /lib/private/files | |
parent | f1bf1326b172ddac1c2561baa92c22cc4312647f (diff) | |
download | nextcloud-server-1374ba9adf3234222826beb1e069acdd34ab5126.tar.gz nextcloud-server-1374ba9adf3234222826beb1e069acdd34ab5126.zip |
fix fallback config for default home storage
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/filesystem.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index f1f076a297b..5fb345c87f8 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -326,14 +326,16 @@ class Filesystem { if (!is_null($userObject)) { $homeStorage = \OC_Config::getValue( 'home_storage', array( + //default home storage configuration: 'class' => '\OC\Files\Storage\Home', 'arguments' => array() )); - if (empty($config['class'])) { - //FIXME log error? or fallback to '\OC\Files\Storage\Home'? + // sanity checks + if (empty($homeStorage['class'])) { + \OCP\Util::writeLog('files', 'No class given for home_storage', \OCP\Util::ERROR); } - if (!isset($config['arguments'])) { - $config['arguments'] = array(); + if (!isset($homeStorage['arguments'])) { + $homeStorage['arguments'] = array(); } $homeStorage['arguments']['user'] = $userObject; // check for legacy home id (<= 5.0.12) |