diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-14 18:07:08 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-14 18:07:08 +0400 |
commit | b35f679483f2b8f1dab56b903ca2e942ac4606ff (patch) | |
tree | eac40e832d849bc1df2c45c12620b2581c4187d6 /lib/private/group | |
parent | 0ba0596341779100db37e25e59ac34f5a57bd2c3 (diff) |
Fix test cases for group manager
Diffstat (limited to 'lib/private/group')
-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 29453c5da14..9b433b64fd4 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) { |