mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
commit
6f2da96698
@ -35,7 +35,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
|
||||
* @param bool $shared
|
||||
*/
|
||||
function registerService($name, \Closure $closure, $shared = true) {
|
||||
if (!empty($this[$name])) {
|
||||
if (isset($this[$name])) {
|
||||
unset($this[$name]);
|
||||
}
|
||||
if ($shared) {
|
||||
|
Loading…
Reference in New Issue
Block a user