Merge pull request #12114 from owncloud/fix-pimple

Fix Pimple unset
remotes/origin/fix-10825
Morris Jobke 12 years ago
commit 6f2da96698
  1. 2
      lib/private/appframework/utility/simplecontainer.php

@ -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…
Cancel
Save