Update user.php

Fixes $_setupedBackends[] into self::$_setupedBackends[] so that setuped backends are REALLY remembered and not instanciated many times.
This commit is contained in:
shkdee 2013-06-18 21:47:47 +03:00
parent 7ee57dd42c
commit 4a480e4f53
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class OC_User {
// use Reflection to create a new instance, using the $args // use Reflection to create a new instance, using the $args
$backend = $reflectionObj->newInstanceArgs($arguments); $backend = $reflectionObj->newInstanceArgs($arguments);
self::useBackend($backend); self::useBackend($backend);
$_setupedBackends[] = $i; self::$_setupedBackends[] = $i;
} else { } else {
OC_Log::write('core', 'User backend ' . $class . ' already initialized.', OC_Log::DEBUG); OC_Log::write('core', 'User backend ' . $class . ' already initialized.', OC_Log::DEBUG);
} }