diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-07 14:42:11 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-07 14:42:11 -0400 |
commit | 8d56c42fde24790b1912fe0c88fa80a472747ccb (patch) | |
tree | cb3e93effb4983dd62c7ff9ec004d9f747e0fa77 /lib | |
parent | b6bbbb4c47c146848e3452f6be1d2086bf2239eb (diff) | |
download | nextcloud-server-8d56c42fde24790b1912fe0c88fa80a472747ccb.tar.gz nextcloud-server-8d56c42fde24790b1912fe0c88fa80a472747ccb.zip |
Add search and limit to getGroups search in groupExists implementation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/group/backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/group/backend.php b/lib/group/backend.php index 3f2909caa15..73fc402a9ab 100644 --- a/lib/group/backend.php +++ b/lib/group/backend.php @@ -115,7 +115,7 @@ abstract class OC_Group_Backend implements OC_Group_Interface { * @return bool */ public function groupExists($gid){ - return in_array($gid, $this->getGroups()); + return in_array($gid, $this->getGroups($gid, 1)); } /** |