Merge pull request #12114 from owncloud/fix-pimple

Fix Pimple unset
This commit is contained in:
Morris Jobke 2014-11-12 01:40:07 +01:00
commit 6f2da96698
1 changed files with 1 additions and 1 deletions

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