diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-14 15:07:08 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-14 15:07:08 +0100 |
commit | b35f679483f2b8f1dab56b903ca2e942ac4606ff (patch) | |
tree | eac40e832d849bc1df2c45c12620b2581c4187d6 /lib | |
parent | 0ba0596341779100db37e25e59ac34f5a57bd2c3 (diff) | |
download | nextcloud-server-b35f679483f2b8f1dab56b903ca2e942ac4606ff.tar.gz nextcloud-server-b35f679483f2b8f1dab56b903ca2e942ac4606ff.zip |
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 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) { |