aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-23 12:22:15 +0100
committerGitHub <noreply@github.com>2016-12-23 12:22:15 +0100
commit91c87d3a7a219101abdb14c096a15587b79e5bea (patch)
tree1da203947ee751878ebf3490664cbb38533c0681 /lib/private/legacy
parent7130fa7b4cddd35e9275f7453593049c1e989562 (diff)
parentb32e252fb04a49833975304abebac2cec60a3156 (diff)
downloadnextcloud-server-91c87d3a7a219101abdb14c096a15587b79e5bea.tar.gz
nextcloud-server-91c87d3a7a219101abdb14c096a15587b79e5bea.zip
Merge pull request #2820 from nextcloud/testing-md5home
Testing md5home (#26854)
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/user.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php
index ed0d14a1ab9..0a52be7565d 100644
--- a/lib/private/legacy/user.php
+++ b/lib/private/legacy/user.php
@@ -125,9 +125,16 @@ class OC_User {
* setup the configured backends in config.php
*/
public static function setupBackends() {
- OC_App::loadApps(array('prelogin'));
- $backends = \OC::$server->getSystemConfig()->getValue('user_backends', array());
+ OC_App::loadApps(['prelogin']);
+ $backends = \OC::$server->getSystemConfig()->getValue('user_backends', []);
+ if (isset($backends['default']) && !$backends['default']) {
+ // clear default backends
+ self::clearBackends();
+ }
foreach ($backends as $i => $config) {
+ if (!is_array($config)) {
+ continue;
+ }
$class = $config['class'];
$arguments = $config['arguments'];
if (class_exists($class)) {