summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2014-11-11 22:04:46 +0100
committerBernhard Posselt <Raydiation@users.noreply.github.com>2014-11-11 22:04:46 +0100
commit6d5a239abf6405e9dc7b24fcb543ba6cfc0e3690 (patch)
tree4e25fc3b88a86efdd2107777fdaccb2fc1d485c7
parent4c1244f50c78b16c670f9ef1a8e33ef4b30d0d77 (diff)
downloadnextcloud-server-6d5a239abf6405e9dc7b24fcb543ba6cfc0e3690.tar.gz
nextcloud-server-6d5a239abf6405e9dc7b24fcb543ba6cfc0e3690.zip
Fix Pimple unset
-rw-r--r--lib/private/appframework/utility/simplecontainer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/utility/simplecontainer.php b/lib/private/appframework/utility/simplecontainer.php
index c6effed5b4b..55b9cf7a977 100644
--- a/lib/private/appframework/utility/simplecontainer.php
+++ b/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) {