summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Command/App/Enable.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php
index 75833753170..ae763e57a84 100644
--- a/core/Command/App/Enable.php
+++ b/core/Command/App/Enable.php
@@ -149,7 +149,7 @@ class Enable extends Command implements CompletionAwareInterface {
if ($optionName === 'groups') {
return array_map(function (IGroup $group) {
return $group->getGID();
- }, \OC::$server->getGroupManager()->search($context->getCurrentWord()));
+ }, $this->groupManager->search($context->getCurrentWord()));
}
return [];
}