summaryrefslogtreecommitdiffstats
path: root/lib/group.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-15 16:28:31 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-15 17:11:03 +0200
commit68b1ae1a36b652de19afcb645e098e6ac6918eab (patch)
tree62aec6ec649c803b83e5a13797cb5a19a6d9b188 /lib/group.php
parentea99e1184d05d08e1980ade697c25bc5fe36397a (diff)
downloadnextcloud-server-68b1ae1a36b652de19afcb645e098e6ac6918eab.tar.gz
nextcloud-server-68b1ae1a36b652de19afcb645e098e6ac6918eab.zip
OC_Group_Backend.php misses function groupexists
Fix http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-182
Diffstat (limited to 'lib/group.php')
-rw-r--r--lib/group.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/group.php b/lib/group.php
index 4ae9302f78b..9b2959d1f73 100644
--- a/lib/group.php
+++ b/lib/group.php
@@ -255,7 +255,12 @@ class OC_Group {
* @return bool
*/
public static function groupExists($gid){
- return in_array( $gid, self::getGroups());
+ foreach(self::$_usedBackends as $backend){
+ if ($backend->groupExists($gid)){
+ return true;
+ }
+ }
+ return false;
}
/**