Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/group
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-07 22:42:11 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-07 22:42:11 +0400
commit8d56c42fde24790b1912fe0c88fa80a472747ccb (patch)
treecb3e93effb4983dd62c7ff9ec004d9f747e0fa77 /lib/group
parentb6bbbb4c47c146848e3452f6be1d2086bf2239eb (diff)
Add search and limit to getGroups search in groupExists implementation
Diffstat (limited to 'lib/group')
-rw-r--r--lib/group/backend.php2
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));
}
/**