Fix Pimple unset

This commit is contained in:
Bernhard Posselt 2014-11-11 22:04:46 +01:00
parent 4c1244f50c
commit 6d5a239abf

View file

@ -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) {