diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-14 18:07:08 +0400 |
---|---|---|
committer | Simon Vocella <voxsim@gmail.com> | 2014-09-24 11:39:39 +0400 |
commit | 82c375cda55202956fee0afa23e5e34af90d3d5f (patch) | |
tree | 4f17acd0823cdfefc9c04b74e52a1988a7a19f1a /lib | |
parent | ed6588ff21e99dceb40173ff1e7318bff62f16e5 (diff) |
Fix test cases for group manager
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/group/manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index f69ee636c44..3e51b71bcf5 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -108,8 +108,8 @@ class Manager extends PublicEmitter { public function createGroup($gid) { if (!$gid) { return false; - } else if ($this->groupExists($gid)) { - return $this->get($gid); + } else if ($group = $this->get($gid)) { + return $group; } else { $this->emit('\OC\Group', 'preCreate', array($gid)); foreach ($this->backends as $backend) { |