Skip to content
Snippets Groups Projects
Commit 6d5a239a authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Fix Pimple unset

parent 4c1244f5
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment