diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index f1f076a297bc87b9a64e84f2a670635c3220046b..5fb345c87f8c7da4ea40c191a1ce4183e341f805 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)