mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix Pimple unset
This commit is contained in:
parent
4c1244f50c
commit
6d5a239abf
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue