diff options
Diffstat (limited to 'lib/private/ServerContainer.php')
-rw-r--r-- | lib/private/ServerContainer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php index 2e45319fb3c..9d4b632c839 100644 --- a/lib/private/ServerContainer.php +++ b/lib/private/ServerContainer.php @@ -127,7 +127,7 @@ class ServerContainer extends SimpleContainer { // In case the service starts with OCA\ we try to find the service in // the apps container first. - if (!isset($this->items[$name]) && ($appContainer = $this->getAppContainerForService($name)) !== null) { + if (!array_key_exists($name, $this->items) && !array_key_exists($name, $this->aliases) && ($appContainer = $this->getAppContainerForService($name)) !== null) { try { return $appContainer->queryNoFallback($name); } catch (QueryException $e) { |